karakun / OpenWebStart

Run Web Start based applications after the release of Java 11
https://openwebstart.com
Other
417 stars 48 forks source link

Deprecated SecurityManager, AccessController, AccessControlContext, AccessControlException #569

Closed Horcrux7 closed 8 months ago

Horcrux7 commented 9 months ago

The classes java.lang.SecurityManager, java.security.AccessController, java.security.AccessControlContext and java.security.AccessControlException are deprecated since Java 17 and marked forRemoval=true

If the JDK remove the classes in the future then the follow typical JNLP code will not compile or run with OpenWebStart.

AccessController.doPrivileged( (PrivilegedAction)() -> ... );

What is the proposed solution so that we can use modern JDK versions in the future?

sclassen commented 8 months ago

There is none. Once that the SecurityManager or another important class is removed from the JDK then there will be no way to run OWS with this or any future version.

Horcrux7 commented 8 months ago

Thanks for the information. I had hope that you want implements some alternative solution.