Skip to content
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

[0.31 release] Correctly throw UOE from setSecurityManager #14453

Merged
merged 1 commit into from
Feb 8, 2022

Conversation

babsingh
Copy link
Contributor

@babsingh babsingh commented Feb 8, 2022

In some cases, warning messages are no longer being printed when the input
argument is null. Revising the fix in #14329 to correctly throw
UnsupportedOperationException (UOE) in case of a null input argument when the
security manager is disallowed.

When the security manager is not allowed to be set dynamically, return if the
input argument is null. UnsupportedOperationException should only be thrown for
a non-null input argument.

Fixes: #14445

Related: #14447

Signed-off-by: Babneet Singh [email protected]

In some cases, warning messages are no longer being printed when the input
argument is null. Revising the fix in eclipse-openj9#14329 to correctly throw
UnsupportedOperationException (UOE) in case of a null input argument when the
security manager is disallowed.

When the security manager is not allowed to be set dynamically, return if the
input argument is null. UnsupportedOperationException should only be thrown for
a non-null input argument.

Fixes: eclipse-openj9#14445

Signed-off-by: Babneet Singh <[email protected]>
@babsingh
Copy link
Contributor Author

babsingh commented Feb 8, 2022

fyi @pshipton @tajila

@pshipton pshipton added this to the Release 0.31 (Java 18) milestone Feb 8, 2022
@pshipton pshipton merged commit 3411329 into eclipse-openj9:v0.31.0-release Feb 8, 2022
@babsingh babsingh deleted the sm_jdk18_031 branch February 18, 2022 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants