File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 99
1010a = strsplit(v , ' .' );
1111if (isempty(a ))
12- api = 0 ;
12+ api = [] ;
1313 return
1414end
1515
2222end
2323
2424
25- % !assert(java_api() > 0 )
25+ % !assert(!isempty( java_api()) )
Original file line number Diff line number Diff line change 2828 y = e1 == 0 && e2 == 0 && ...
2929 r1.ino == r2 .ino && r1 .dev == r2 .dev ;
3030
31- elseif stdlib .has_java()
31+ elseif stdlib .has_java() && stdlib .java_api() >= 11
3232% https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/nio/file/Files.html#isSameFile(java.nio.file.Path,java.nio.file.Path)
33-
33+ % Java 1.8 is buggy in some corner cases, so we require at least 11.
3434 y = java .nio .file .Files .isSameFile(javaPathObject(path1 ), javaPathObject(path2 ));
3535
3636else
Original file line number Diff line number Diff line change 5656 - name : Check CodeIssues
5757 uses : ./.github/workflows/composite-check
5858
59+ # https://www.mathworks.com/support/requirements/openjdk.html
60+ # old matlab may segfault with too-new JDK
5961 - name : matlab_jenv JDK 11
60- if : ${{ matrix.release < 'R2025a' && !startsWith(matrix.release, 'latest') }}
62+ if : ${{ matrix.release >= 'R2023a' && matrix.release < 'R2025a' && !startsWith(matrix.release, 'latest') }}
6163 run : matlab_jenv ${JAVA_HOME_11_X64}
6264
6365 - name : Matlab tell Java Version
You can’t perform that action at this time.
0 commit comments