RFR 8149757:Implement Multi-Release jar aware JavacFileManager for javac
jan.lahoda at oracle.com
Thu Apr 7 05:37:36 UTC 2016
On 6.4.2016 22:13, Jonathan Gibbons wrote:
>> -why is JavacFileManager.getJarFSProvider() needed? Shouldn't
>> FileSystems.newFileSystem(realPath, env);
>> be enough? (Calling an SPI directly from an API client seems
>> suspicious to me.)
> If I recall correctly, the NIO2 API design forced this one. The method
> you are referring to does not exist. There is only one that takes a URI,
> and that has very different semantics. So we had to go with the method
> on the provider, hence the use of getJarFSProvider.
Ooops, sorry, I keep forgetting that.
More information about the compiler-dev