Skip to content

Commit 54cbd65

Browse files
committed
Use the same FileSystem as the outputDir.
Otherwise `java.nio.file.ProviderMismatchException` can be thrown if it differs from `FileSystems.getDefault()` (which was implicitly used by `Paths.get()`).
1 parent 39d34e2 commit 54cbd65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

retrolambda/src/main/java/net/orfjackal/retrolambda/files/OutputDirectory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void writeClass(byte[] bytecode) throws IOException {
2222
return;
2323
}
2424
ClassReader cr = new ClassReader(bytecode);
25-
Path relativePath = Paths.get(cr.getClassName() + ".class");
25+
Path relativePath = outputDir.getFileSystem().getPath(cr.getClassName() + ".class");
2626
writeFile(relativePath, bytecode);
2727
}
2828

0 commit comments

Comments
 (0)