mbien edited a comment on pull request #3862:
URL: https://github.com/apache/netbeans/pull/3862#issuecomment-1079244365


   > * Set system property `java.security.manager` to `allow` for unittest runs
   
   @matthiasblaesing have you tested this on older JDKs? Since JDKs pre SM 
deprecation don't know what 'allow' means.
   
   ```
   jdk-8.322.06.1-corretto/bin/java -Djava.security.manager=allow -version
   Error occurred during initialization of VM
   java.lang.InternalError: Could not create SecurityManager: allow
        at sun.misc.Launcher.<init>(Launcher.java:106)
        at sun.misc.Launcher.<clinit>(Launcher.java:54)
        at java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1444)
        at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1429)
   ```
   ```
   jdk-11.0.14.9.1-corretto/bin/java -Djava.security.manager=allow -version
   Error occurred during initialization of VM
   java.lang.Error: Could not create SecurityManager
        at java.lang.System.initPhase3([email protected]/System.java:2065)
   Caused by: java.lang.ClassNotFoundException: allow
        at 
jdk.internal.loader.BuiltinClassLoader.loadClass([email protected]/BuiltinClassLoader.java:581)
        at 
jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass([email protected]/ClassLoaders.java:178)
        at 
java.lang.ClassLoader.loadClass([email protected]/ClassLoader.java:522)
        at java.lang.Class.forName0([email protected]/Native Method)
        at java.lang.Class.forName([email protected]/Class.java:398)
        at java.lang.System.initPhase3([email protected]/System.java:2050)
   ```
   ```
   jdk-17.0.2.8.1-corretto/bin/java -Djava.security.manager=allow -version
   openjdk version "17.0.2" 2022-01-18 LTS
   OpenJDK Runtime Environment Corretto-17.0.2.8.1 (build 17.0.2+8-LTS)
   OpenJDK 64-Bit Server VM Corretto-17.0.2.8.1 (build 17.0.2+8-LTS, mixed 
mode, sharing)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to