-
Notifications
You must be signed in to change notification settings - Fork 874
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
Remove Thread.stop() usage #4952
Comments
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.. |
I asked
|
@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 :)) |
Here you are:
This list is generated using jackpot like this:
|
awesome, thanks. This doesn't look that bad anymore thanks to your work. If we remove all tests from that list, we get this:
|
another bogeyman showed up: https://download.java.net/java/early_access/jdk20/docs/api/java.base/java/lang/ThreadGroup.html#destroy() 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. |
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? |
@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. |
NBI can't be built on JDK 23 since it uses some of the removed methods, example:
|
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 |
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. |
see #7542 for NBI update |
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. |
Those methods are deprecated since Java 1.2 and will throw UnsupportedOp exceptions from JDK 20+.
got reminded today again by getting this notification:
https://inside.java/2022/11/09/quality-heads-up/
The text was updated successfully, but these errors were encountered: