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

JDK 24+ don't enable security manager and disable failing tests #5817

Merged
merged 3 commits into from
Dec 17, 2024

Conversation

theresa-m
Copy link
Contributor

@theresa-m theresa-m commented Dec 11, 2024

In JEP 486 for Java 24 any attempt to enable a security manager (such as -Djava.security.manager=allow) will result in an error. This change removes the use of java.security.manager=allow from JDK 24+.

The system test framework also has uses the security manager for load tests that needs to be removed. In the meantime this change disables tests that are failing because of it. See adoptium/STF#142

@theresa-m
Copy link
Contributor Author

The remaining failures are due to use of the SecurityManager library in the system test framework. I opened adoptium/STF#142 and will temporarily disable the failing tests.

@theresa-m theresa-m force-pushed the system_secmanager branch 5 times, most recently from 3769dc2 to cd8c92e Compare December 17, 2024 14:57
@theresa-m theresa-m marked this pull request as ready for review December 17, 2024 15:11
@theresa-m theresa-m changed the title Remove java.security.manager=allow from JDK 24 JDK 24+ don't enable security manager and disable failing tests Dec 17, 2024
@theresa-m
Copy link
Contributor Author

This is ready for review fyi @llxia

Copy link
Contributor

@llxia llxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@llxia llxia requested a review from smlambert December 17, 2024 15:22
system/system.mk Outdated
@@ -47,14 +47,15 @@ else
OPENJ9_PRAM=""
endif

# In JDK 24+ any attempts to enable the security manager will result in an error
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sentence is missing a period.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Copy link
Contributor

@smlambert smlambert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@smlambert smlambert merged commit b0d8d40 into adoptium:master Dec 17, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants