-
Notifications
You must be signed in to change notification settings - Fork 728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JDK18] System.setSecurityManager didn't throw UnsupportedOperationException #14092
Comments
babsingh
added a commit
to babsingh/aqa-tests
that referenced
this issue
Dec 6, 2021
eclipse-openj9/openj9#13995 has been fixed via eclipse-openj9/openj9#14044. So, the tests excluded for eclipse-openj9/openj9#13995 have been re-enabled. Tests failures documented in the below issues have been excluded: - eclipse-openj9/openj9#14079 - eclipse-openj9/openj9#14080 - eclipse-openj9/openj9#14084 - eclipse-openj9/openj9#14091 - eclipse-openj9/openj9#14092 - eclipse-openj9/openj9#14093 - eclipse-openj9/openj9#14094 - eclipse-openj9/openj9#14095 Signed-off-by: Babneet Singh <[email protected]>
This was referenced Dec 6, 2021
babsingh
added a commit
to babsingh/aqa-tests
that referenced
this issue
Dec 6, 2021
eclipse-openj9/openj9#13995 has been fixed via eclipse-openj9/openj9#14044. So, the tests excluded for eclipse-openj9/openj9#13995 have been re-enabled. Test failures documented in the below issues have been excluded: - eclipse-openj9/openj9#14079 - eclipse-openj9/openj9#14080 - eclipse-openj9/openj9#14084 - eclipse-openj9/openj9#14091 - eclipse-openj9/openj9#14092 - eclipse-openj9/openj9#14093 - eclipse-openj9/openj9#14094 - eclipse-openj9/openj9#14095 Signed-off-by: Babneet Singh <[email protected]>
llxia
pushed a commit
to adoptium/aqa-tests
that referenced
this issue
Dec 7, 2021
eclipse-openj9/openj9#13995 has been fixed via eclipse-openj9/openj9#14044. So, the tests excluded for eclipse-openj9/openj9#13995 have been re-enabled. Test failures documented in the below issues have been excluded: - eclipse-openj9/openj9#14079 - eclipse-openj9/openj9#14080 - eclipse-openj9/openj9#14084 - eclipse-openj9/openj9#14091 - eclipse-openj9/openj9#14092 - eclipse-openj9/openj9#14093 - eclipse-openj9/openj9#14094 - eclipse-openj9/openj9#14095 Signed-off-by: Babneet Singh <[email protected]>
babsingh
added a commit
to babsingh/openj9
that referenced
this issue
Feb 3, 2022
1. Consolidate security manager startup code invoked from ClassLoader.initializeClassLoaders in System.initSecurityManager (new method). 2. As per the Java doc, the java.security.manager property should only be read at startup. Example: If this property is initialized with "disallow" when the JVM is started, then a security manager will not be set at startup and cannot be set dynamically. Currently, this property is read in System.setSecurityManager. If a user changes this property after startup, then System.setSecurityManager's behaviour will change after startup. This behaviour does not follow the Java doc and reference implementation. To fix this issue, the java.security.manager is only read once at startup in System.initSecurityManager. 3. In JDK18, System.setSecurityManager's run-time behaviour changes with respect to the java.security.manager property. Previously, if the property was null, the run-time behaviour was success or throws SecurityException. In JDK18, the new behaviour is to throw UnsupportedOperationException if the property is null. This matches the behaviour when the property is set to "disallow". Fixes: eclipse-openj9#14092 Fixes: eclipse-openj9#14094 Signed-off-by: Babneet Singh <[email protected]>
babsingh
added a commit
to babsingh/openj9
that referenced
this issue
Feb 4, 2022
1. Consolidate security manager startup code invoked from ClassLoader.initializeClassLoaders in System.initSecurityManager (new method). 2. As per the Java doc, the java.security.manager property should only be read at startup. Example: If this property is initialized with "disallow" when the JVM is started, then a security manager will not be set at startup and cannot be set dynamically. Currently, this property is read in System.setSecurityManager. If a user changes this property after startup, then System.setSecurityManager's behaviour will change after startup. This behaviour does not follow the Java doc and reference implementation. To fix this issue, the java.security.manager is only read once at startup in System.initSecurityManager. 3. In JDK18, System.setSecurityManager's run-time behaviour changes with respect to the java.security.manager property. Previously, if the property was null, the run-time behaviour was success or throws SecurityException. In JDK18, the new behaviour is to throw UnsupportedOperationException if the property is null. This matches the behaviour when the property is set to "disallow". Fixes: eclipse-openj9#14092 Fixes: eclipse-openj9#14094 Signed-off-by: Babneet Singh <[email protected]>
Test re-enabled via adoptium/aqa-tests#3318. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OpenJDK Tests
Errors
Related: #13946
The text was updated successfully, but these errors were encountered: