New release DefaultFileSystemProviders
Michael Hall
mik3hall at gmail.com
Tue Aug 3 21:25:19 UTC 2021
> On Jul 30, 2021, at 9:36 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
>
> On 30/07/2021 00:00, Michael Hall wrote:
>> Correction non-modular exploded works
>>
>> java 18 exploded works
>> /usr/libexec/java_home -v 18 --exec java -cp .:macnio2 -Djava.security.manager -Djava.security.policy=all.policy -Djava.nio.file.spi.DefaultFileSystemProvider=us.hall.trz.osx.MacFileSystemProvider org.test.Test
>> WARNING: A command line option has enabled the Security Manager
>> WARNING: The Security Manager is deprecated and will be removed in a future release
>> us.hall.trz.osx.MacFileSystem at 60e53b93
>> us.hall.trz.osx.MacFileSystemProvider
>>
>> java 17 exploded works
>> /usr/libexec/java_home -v 17 --exec java -cp .:macnio2 -Djava.security.manager -Djava.security.policy=all.policy -Djava.nio.file.spi.DefaultFileSystemProvider=us.hall.trz.osx.MacFileSystemProvider org.test.Test
>> WARNING: A command line option has enabled the Security Manager
>> WARNING: The Security Manager is deprecated and will be removed in a future release
>> us.hall.trz.osx.MacFileSystem at 511d50c0
>> us.hall.trz.osx.MacFileSystemProvider
>>
>> Non-exploded, or jar’d, is probably still https://bugs.openjdk.java.net/browse/JDK-8263940
> Yes, the exploded case should be okay. However, if java.nio.file.spi.DefaultFileSystemProvider specifies a class in a JAR file that is on the class path or module path then you'll run into this issue. Setting the security manager on the command line will trigger this occur at VM startup.
> -Alan
I had filed an incident report against my application for these errors when I was asked to verify the security manager on command line fix.
Having no simple test case the bug report was just closed as unable to reproduce.
If https://bugs.openjdk.java.net/browse/JDK-8263940 <https://bugs.openjdk.java.net/browse/JDK-8263940> is assumed to still cover the current situation that’s fine. Otherwise there is no bug report I know of to track the current errors.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20210803/39ba2777/attachment-0001.htm>
More information about the nio-dev
mailing list