Skip to content

fix: add --add-opens java.io and --enable-native-access JVM flags - #741

Merged
oleg-nenashev merged 1 commit into
jenkinsci:mainfrom
romanisb:fix-java25-opens-flags
Jul 11, 2026
Merged

fix: add --add-opens java.io and --enable-native-access JVM flags#741
oleg-nenashev merged 1 commit into
jenkinsci:mainfrom
romanisb:fix-java25-opens-flags

Conversation

@romanisb

@romanisb romanisb commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Follow-up on the Java 21 migration.

The two new flags added everywhere:

--add-opens=java.base/java.io=ALL-UNNAMED; fixes IOException.serialVersionUID XStream reflection
--enable-native-access=ALL-UNNAMED; suppresses JNA System::load warning log entries

Testing done

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

@romanisb
romanisb requested a review from a team as a code owner June 30, 2026 15:35
@romanisb

romanisb commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

@oleg-nenashev should be the last missing configuration. Let me know if there is something else I could test.

And as already mentioned in another PR. A new release would be much appreciated.

@oleg-nenashev
oleg-nenashev merged commit a612e84 into jenkinsci:main Jul 11, 2026
10 checks passed
@romanisb
romanisb deleted the fix-java25-opens-flags branch July 13, 2026 06:28
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.

2 participants