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

Tweaks to support building with OpenJDK 21.0.2; no functional changes #147

Merged
merged 3 commits into from
Mar 18, 2024

Conversation

bluedenim
Copy link
Owner

Some uses of Powermock in the unit tests are running into errors like:

java.lang.reflect.InaccessibleObjectException: Unable to make private final native void java.lang.Object.wait0(long) 
throws java.lang.InterruptedException accessible: module java.base does not "opens java.lang"
to unnamed module @6debcae2

Adding a plug-in entry for maven-surefire-plugin with --add-opens java.base/java.lang=ALL-UNNAMED (among others) seems to do the trick.

@bluedenim bluedenim force-pushed the tweak_to_work_with_openjdk_21 branch from 991be41 to 117cfd4 Compare March 18, 2024 02:37
@bluedenim bluedenim merged commit 8f6d33b into master Mar 18, 2024
1 check 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.

1 participant