Use the same FileSystem as the outputDir. - #71
Conversation
Otherwise `java.nio.file.ProviderMismatchException` can be thrown if it differs from `FileSystems.getDefault()` (which was implicitly used by `Paths.get()`).
JakeWharton
commented
Oct 10, 2015
Actually it looks like there's other path assumption problems in |
luontola
commented
Oct 14, 2015
In what situation would this result in Retrolambda not working? I'd like to reproduce it. |
JakeWharton
commented
Oct 14, 2015
I was loading class files directly from a pre-existing jar by using |
JakeWharton
commented
Oct 14, 2015
I'll note that this is not a comprehensive fix as I gave up and just extracted the jar. |
luontola
commented
Oct 14, 2015
How were you invoking Retrolambda? AFAIK, it shouldn't be possible to pass in a custom file system even in you call net.orfjackal.retrolambda.Retrolambda#run programmatically. |
JakeWharton
commented
Oct 14, 2015
Nothing is final or hidden so I just subclassed |
luontola
commented
Oct 14, 2015
OK. Such an API could also be used for implementing #44. |
Use the same FileSystem as the outputDir.
luontola
commented
Dec 19, 2015
This is included in Retrolambda 2.1.0. |
Otherwise
java.nio.file.ProviderMismatchExceptioncan be thrown if it differs fromFileSystems.getDefault()(which was implicitly used byPaths.get()).