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

version bump: require javac 18. #3953

Merged
merged 1 commit into from
Apr 19, 2022
Merged

Conversation

mbien
Copy link
Member

@mbien mbien commented Apr 10, 2022

NetBeans 14 expects javac 18 which means we have to increment the version for the javac checks too.

@mbien mbien added the Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) label Apr 10, 2022
@mbien mbien added this to the NB14 milestone Apr 10, 2022
Copy link
Contributor

@matthiasblaesing matthiasblaesing left a comment

Choose a reason for hiding this comment

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

Eyeballed this and looks sane to me.

Copy link
Member

@neilcsmith-net neilcsmith-net left a comment

Choose a reason for hiding this comment

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

Looks good, at least for a short term solution. A proper API for this, and linked to nb-javac updates in some way so the increment can't be missed, might be useful in the future?

@mbien
Copy link
Member Author

mbien commented Apr 15, 2022

Looks good, at least for a short term solution. A proper API for this, and linked to nb-javac updates in some way so the increment can't be missed, might be useful in the future?

@neilcsmith-net I thought about this a bit.

It is essentially a runtime dependency check. Someone gonna have to bump the number no matter where it is taken from. We can't put it into the nb-javac module since the check has to work without it.

an assert could potentially check:
assert ((NB_VERSION / 2 + 11) == REQUIRED_JAVAC_VERSION)
which would fail if someone forgets the bump REQUIRED_JAVAC_VERSION in NB 16. However, where do we get NB_VERSION from? The release would have a system property for that, but a dev version doesn't.

@mbien
Copy link
Member Author

mbien commented Apr 19, 2022

integrating this one. We can further improve those version checks for the next release.

@mbien mbien merged commit 9d5defe into apache:master Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants