File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
truffle/src/com.oracle.truffle.tck.tests/src/com/oracle/truffle/tck/tests Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ private static boolean isJUnitEntryPoint(Method method) {
126126 private static Collection <String > findTCKTests () {
127127 try {
128128 URL resource = TruffleTCKFeature .class .getResource ("TruffleTCKFeature.class" );
129- try (FileSystem fileSystem = FileSystems .newFileSystem (resource .toURI (), Map .of ())) {
129+ try (FileSystem fileSystem = "jar" . equals ( resource . getProtocol ()) ? FileSystems .newFileSystem (resource .toURI (), Map .of ()) : null ) {
130130 Path path = Path .of (resource .toURI ());
131131 try (Stream <Path > siblingResources = Files .list (path .getParent ())) {
132132 String packageName = TruffleTCKFeature .class .getPackageName ();
You can’t perform that action at this time.
0 commit comments