Skip to content

Bump javac.release from 17 to 21 to consolidate on one version - #9726

Merged
mbien merged 1 commit into
apache:masterfrom
mbien:bump-to-21
Nov 20, 2026
Merged

mbien merged 1 commit into
apache:masterfrom
mbien:bump-to-21

Conversation

@mbien

@mbien mbien commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

those are all modules which are currently on 17 and also have java sources (except lib wrappers)

i didn't plan on doing this anymore after javac.release migration (#8813) but it helps to remove a distracting step during review, since not all contributors know that they could bump the version and use newer API. Maybe there will be some kind of default version at some point #9323. There was also a dev-list thread. cc @errael

this can wait for after release to avoid conflicts.

@mbien mbien added this to the NB33 milestone Oct 17, 2026
@mbien mbien added the ci:all-tests [ci] enable all tests label Oct 17, 2026
@mbien

mbien commented Oct 17, 2026 •

Copy link
Copy Markdown
Member Author

... forgot to commit a revert

and found another issue, a manifest had a OpenIDE-Module-Java-Dependencies configured. This caused trouble since it is usually set automatically and the module version way > manifest value.

edit2: version bumps are like a box of chocolates

@mbien
mbien force-pushed the bump-to-21 branch 4 times, most recently from 87989ac to 9bd0123 Compare October 17, 2026 15:18
@mbien
mbien marked this pull request as ready for review October 29, 2026 11:54
Lib wrapper modules are excluded from the bump:

their javac.release mirrors the bytecode level of the wrapped binary
(floored at 8), so they are aligned to that level instead.
@neilcsmith-net

Copy link
Copy Markdown
Member

and found another issue, a manifest had a OpenIDE-Module-Java-Dependencies configured. This caused trouble since it is usually set automatically and the module version way > manifest value.

The Gradle one. Yes, doesn't like there was a need for that. Only use for setting that manually is for optional modules that have a requirement above the baseline but aren't compiled for that. ie. using reflection or wrapping a resource that has higher requirements. Not sure if we have any at the moment.

@mbien

mbien commented Nov 20, 2026 •

Copy link
Copy Markdown
Member Author

The Gradle one. ... using reflection or wrapping a resource that has higher requirements

oh right. But this might not be the reason for the manifest entry, it was added in #7257.

while gradle tooling is compiled with tooling.javac.release=8 still. So I hope it is ok to bump the module version to 21 (which would add OpenIDE-Module-Java-Dependencies: Java > 21 automatically)

@mbien mbien added the build label Nov 20, 2026
@mbien
mbien merged commit 9beb5ec into apache:master Nov 20, 2026
110 of 114 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build ci:all-tests [ci] enable all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants