You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Java[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)Upgrade JDKUpgrade to the JDK requirements of a module.kind:bugBug report or fixpriority:highHigh priority issue that should, if possible, be fixed in next release
@matthiasblaesing could you generate a new list so that we can see what is left to do? (or even better share the script which runs jackpot on all projects :))
BridgeImpluses stop as fallback, we could probably simply catch UOE there or guard against JDK 20+. SecMan is full with deprecated code since SecurityManager itself is deprecated. This will be harder to solve. AgentWorker for jshell might also cause problems, it should probably interrupt and pray. SLIOptions2 uses stop too as last resort.
Tested NB from master on JDK 20 a bit and things did work pretty well already. Canceling background tasks did also work, resetting JShell sessions worked, cancelling maven+ant builds seems to work too, project run -> stop had also no problem.
@neilcsmith-net we can move this to NB19. This is something we can do incrementally. I couldn't find any showstoppers while testing on JDK 20 so far. Matthias did also replace some important implementations already.
the experiment at #7538 showed that removal of downloader/* is likely the quickest option. It builds, it tests and I also generated an .exe installer and tested it manually (only on JDK 22 since the (native) installer can't parse ea java versions, but this is off topic).
NBI is in bad shape, unmaintained and NB is slowly transitioning to @neilcsmith-net's nbpackage, everything except windows is using it already. The NBI issue is preventing us from building or testing NetBeans on JDK 23 which is a problem.
I will open a proper PR soon, with the cleaned up changes which remove the online functionality from NBI to give it a small life time extension. This would go in first, then we can merge the nb-javac 23 PR once ready, then the CI-on-23 PR and we are (hopefully) good for the NB 23 cycle.
instead of fixing this, should we get rid of the downloader package+functionality?
I am sill a believer that we should clearn up the usage of Thread.stop instead of removing the downloader package?
This was my first reaction and as @mbien writes in #7542 also his. But this needs someone to actually do the work and I decided for myself that I'm not willing to do it.
Java[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)Upgrade JDKUpgrade to the JDK requirements of a module.kind:bugBug report or fixpriority:highHigh priority issue that should, if possible, be fixed in next release
Activity
BradWalker commentedon Nov 9, 2022
It is for issues like this, that I've been working on trying to clean up "old code". Because eventually it is going to bite us in a major way..
matthiasblaesing commentedon Feb 10, 2023
I asked
jackpotfor help and it answered (running the "Invoking Thread.stop()/suspend()/resume()" hint):mbien commentedon Mar 13, 2023
@matthiasblaesing could you generate a new list so that we can see what is left to do? (or even better share the script which runs jackpot on all projects :))
matthiasblaesing commentedon Mar 13, 2023
Here you are:
This list is generated using jackpot like this:
mbien commentedon Mar 14, 2023
awesome, thanks. This doesn't look that bad anymore thanks to your work. If we remove all tests from that list, we get this:
BridgeImpluses stop as fallback, we could probably simply catch UOE there or guard against JDK 20+.SecManis full with deprecated code since SecurityManager itself is deprecated. This will be harder to solve.AgentWorkerfor jshell might also cause problems, it should probably interrupt and pray.SLIOptions2uses stop too as last resort.mbien commentedon Mar 18, 2023
another bogeyman showed up:
https://download.java.net/java/early_access/jdk20/docs/api/java.base/java/lang/ThreadGroup.html#stop()
will throw UOEs too.
https://download.java.net/java/early_access/jdk20/docs/api/java.base/java/lang/ThreadGroup.html#destroy()
is now a no-op.
Tested NB from master on JDK 20 a bit and things did work pretty well already. Canceling background tasks did also work, resetting JShell sessions worked, cancelling maven+ant builds seems to work too, project run -> stop had also no problem.
neilcsmith-net commentedon May 2, 2023
This is still open and marked high priority for NB18. Where are we at with this? Are there still things we need to address before release?
mbien commentedon May 2, 2023
@neilcsmith-net we can move this to NB19. This is something we can do incrementally. I couldn't find any showstoppers while testing on JDK 20 so far. Matthias did also replace some important implementations already.
mbien commentedon Jun 27, 2024
NBI can't be built on JDK 23 since it uses some of the removed methods, example:
https://github.com/apache/netbeans/actions/runs/9690496379
mbien commentedon Jun 27, 2024
instead of fixing this, should we get rid of the downloader package+functionality?
BradWalker commentedon Jun 27, 2024
I am sill a believer that we should clearn up the usage of
Thread.stopinstead of removing the downloader package?mbien commentedon Jul 3, 2024
the experiment at #7538 showed that removal of downloader/* is likely the quickest option. It builds, it tests and I also generated an .exe installer and tested it manually (only on JDK 22 since the (native) installer can't parse ea java versions, but this is off topic).
NBI is in bad shape, unmaintained and NB is slowly transitioning to @neilcsmith-net's nbpackage, everything except windows is using it already. The NBI issue is preventing us from building or testing NetBeans on JDK 23 which is a problem.
I will open a proper PR soon, with the cleaned up changes which remove the online functionality from NBI to give it a small life time extension. This would go in first, then we can merge the nb-javac 23 PR once ready, then the CI-on-23 PR and we are (hopefully) good for the NB 23 cycle.
mbien commentedon Jul 3, 2024
see #7542 for NBI update
matthiasblaesing commentedon Jul 3, 2024
This was my first reaction and as @mbien writes in #7542 also his. But this needs someone to actually do the work and I decided for myself that I'm not willing to do it.
mbien commentedon Nov 16, 2025
this is mostly done, #9017 will remove whatever slipped through so far until nb builds on JDK 26 (which has now stop/suspend/resume removed).