Use the same FileSystem as the outputDir.#71
Use the same FileSystem as the outputDir.#71luontola merged 1 commit intoluontola:masterfrom JakeWharton:patch-1
Conversation
Otherwise `java.nio.file.ProviderMismatchException` can be thrown if it differs from `FileSystems.getDefault()` (which was implicitly used by `Paths.get()`).
|
Actually it looks like there's other path assumption problems in |
|
In what situation would this result in Retrolambda not working? I'd like to reproduce it. |
|
I was loading class files directly from a pre-existing jar by using |
|
I'll note that this is not a comprehensive fix as I gave up and just extracted the jar. |
|
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. |
|
Nothing is final or hidden so I just subclassed |
|
OK. Such an API could also be used for implementing #44. |
Use the same FileSystem as the outputDir.
|
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()).