Skip to content

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

Merged
smlambert merged 3 commits intoadoptium:masterfrom
theresa-m:system_secmanager
Dec 17, 2024
Merged

JDK 24+ don't enable security manager and disable failing tests#5817
smlambert merged 3 commits intoadoptium:masterfrom
theresa-m:system_secmanager

Conversation

@theresa-m
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

This is ready for review fyi @llxia

Copy link
Copy Markdown
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
OPENJ9_PRAM=""
endif

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

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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

Signed-off-by: Theresa Mammarella <Theresa.T.Mammarella@ibm.com>
…from framework

Signed-off-by: Theresa Mammarella <Theresa.T.Mammarella@ibm.com>
…d from framework

Signed-off-by: Theresa Mammarella <Theresa.T.Mammarella@ibm.com>
Copy link
Copy Markdown
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
judovana pushed a commit to judovana/aqa-tests that referenced this pull request Mar 11, 2025
…tium#5817)

* Remove java.security.manager=allow from JDK 24

Signed-off-by: Theresa Mammarella <Theresa.T.Mammarella@ibm.com>

* Disable failing sanity system tests until SecurityManager is removed from framework

Signed-off-by: Theresa Mammarella <Theresa.T.Mammarella@ibm.com>

* Disable failing extended system tests until SecurityManager is removed from framework

Signed-off-by: Theresa Mammarella <Theresa.T.Mammarella@ibm.com>

---------

Signed-off-by: Theresa Mammarella <Theresa.T.Mammarella@ibm.com>
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