Skip to content

Commit ef0b7a0

Browse files
committed
samepath at least R2017b
1 parent bc7352a commit ef0b7a0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

+stdlib/+java/private/javaAbsolutePath.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
javaPath = file.toPath();
88

99
if ~javaPath.isAbsolute()
10-
javaPath = javaPathObject(pwd()).resolve(javaPath);
10+
% auxilary variable for Matlab < R2019b
11+
b = javaPathObject(pwd());
12+
javaPath = b.resolve(javaPath);
1113
end
1214

1315
end

test/TestSame.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
classdef (SharedTestFixtures={ matlab.unittest.fixtures.PathFixture(fileparts(fileparts(mfilename('fullpath'))))}, ...
2-
TestTags = {'R2019b', 'impure'}) ...
2+
TestTags = {'R2017b', 'impure'}) ...
33
TestSame < matlab.unittest.TestCase
44

55
properties (TestParameter)

0 commit comments

Comments
 (0)