-
Notifications
You must be signed in to change notification settings - Fork 855
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
Upgrade to nb-javac from JDK 23, build 30 #7484
Conversation
goodbye string templates, lets hope they will be back at some point in future. This is something we should mention on the download page since it might be surprising for users that NB 23 won't know about STs anymore even when the project is on JDK 21. |
Agreed. Although I don't see anything we could reasonably technically do to mitigate the situation. |
agreed. String templates were API+language and implemented in This is the simplest approach, so +1 from me. Thanks for working on this! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes look good, left a few comments inline
ran a smoke test and NB worked fine with nb-javac 23+26.
before merge, don't forget to:
- switch the staged dependencies to a release build
- squash as you see fit
adding do-not-merge label just to be sure!
java/java.hints/test/unit/src/org/netbeans/modules/java/hints/ImportsTest.java
Outdated
Show resolved
Hide resolved
nbbuild/antsrc/org/netbeans/nbbuild/extlibs/MavenCoordinate.java
Outdated
Show resolved
Hide resolved
@lahodaj would you mind finalizing this? While looking into the JSF modules in the NetBeans codebase I also got exceptions from the |
Build a local test version of nb-javac and build netbeans with this applied: build.patch.txt First impression is good, I plan to run with it the next week. |
The plan is to finalize with a new (currently up-to-date) javac. Ideally, sometime during this week, I think. Thanks for the comments! |
this PR would have to bump the two netbeans/.github/workflows/main.yml Lines 1465 to 1468 in 76e1f35
this would allow us to merge #7525 without having to wait for the nb-javac changes. |
The nb-javac binary download has been updated to JDK 23 build 30, as uploaded to Maven central, I think I've fixed all the comments so far. So I think this is ready for review now. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good! Please don't forget to squash as you see fit.
Thanks! I'll merge if there's a clean test run. |
had to restart the platform batch2 and groovy jobs, but the failures look like normal flakiness unrelated to nb-javac. Should be green in a few minutes. |
A draft for now, but if/when tests are OK with this version of javac, I think we should include it. (And, eventually, upgrade to a newer version when it becomes available, of course.)