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

Remove add exports for sun.security.action from our tool script template #30628

Conversation

gjwatts
Copy link
Member

@gjwatts gjwatts commented Jan 23, 2025

Fixes #30627

Currently we are adding:

 --add-exports java.base/sun.security.action=ALL-UNNAMED

to our automatic scripts, via the tool template, when running on any JVM that is version 9 or higher.

In Java 24, Oracle removed sun.security.action from the java.base module, so when we add the --add-exports above, it gives us a warning that sun.security.action is not in java.base, like this:

WARNING: package sun.security.action not in java.base

This message shows up in our console log and interferes with some of our testing. Since Open Liberty does not require anything in sun.security.action, we are removing the above --add-exports from our tool script template.

@gjwatts gjwatts added team:Zombie Apocalypse java Pull requests that update Java code labels Jan 23, 2025
@gjwatts gjwatts self-assigned this Jan 23, 2025
@gjwatts
Copy link
Member Author

gjwatts commented Jan 23, 2025

!build
(view Open Liberty Personal Build - ❌ completed with errors/failures.)
fat.buckets.to.run=all
fat.test.mode=full
retry_failing_fats=true

Note: Target locations of links might be accessible only to IBM employees.

@LibbyBot
Copy link

Code analysis and actions

DO NOT DELETE THIS COMMENT.
  • 1 product code files were changed.
  • Please describe in a separate comment how you tested your changes.

@gjwatts
Copy link
Member Author

gjwatts commented Jan 27, 2025

There were 3 new failing FATs that were intermittent and 4 existing failing FATs that are known, unrelated issues.

@gjwatts gjwatts requested a review from jhanders34 January 27, 2025 19:49
@gjwatts gjwatts force-pushed the remove-sun-security-action-from-tool-java-24 branch from 767892b to 020eaca Compare January 27, 2025 20:00
@gjwatts gjwatts requested a review from jhanders34 January 27, 2025 20:02
@gjwatts
Copy link
Member Author

gjwatts commented Jan 27, 2025

!build
(view Open Liberty Personal Build - ❌ completed with errors/failures.)
fat.buckets.to.run=all
fat.test.mode=full
retry_failing_fats=true

Note: Target locations of links might be accessible only to IBM employees.

@LibbyBot
Copy link

Code analysis and actions

DO NOT DELETE THIS COMMENT.
  • 2 product code files were changed.
  • Please describe in a separate comment how you tested your changes.

@gjwatts gjwatts merged commit 14c3703 into OpenLiberty:integration Jan 28, 2025
2 of 3 checks passed
@gjwatts gjwatts deleted the remove-sun-security-action-from-tool-java-24 branch January 28, 2025 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed java Pull requests that update Java code team:Zombie Apocalypse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

package sun.security.action not in java.base message starting in Java 24
3 participants