Skip to content

Commit c034eed

Browse files
committed
jPosix: only operate on Java types
1 parent 95eeca4 commit c034eed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

+stdlib/private/jPosix.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
if isempty(o)
44
s = "";
5-
else
5+
elseif isa(o, "java.io.File") || isa(o, "java.nio.file.Path") || ...
6+
isa(o, "sun.nio.fs.UnixPath") || isa(o, "sun.nio.fs.WindowsPath")
67
s = o.toString();
78
end
89

0 commit comments

Comments
 (0)