Re: Java 8 -> Java 21 supported by Netbeans

Maciej Jaros <[email protected]>
Newsgroups gmane.comp.java.ide.netbeans.user
Organization MOL sp. z o.o.
Message-ID <[email protected]>
This will be a time-consuming process. NetBeans can help you figure out 
new versions of libraries in POM files and will mark out deprecated 
classes. Other than that it's just tinkering from my experience. The 
most time-consuming part will probably be updating Hibernate and Spring 
if you use them. If you want to upgrade to the latest libraries, you 
will have to go through the javax → jakarta conversion. Hibernate 5 to 6 
is a big step too because you have to re-write all your DAO to new JPA 
Criteria API. Other then using GPT I don't know any tools for that (GPT 
is mostly good for that though). If you are lucky you are not using any 
discontinued libraries (we had to go through removing Bobo Facets from 
our search).

To be honest, even if you have good test coverage, this will probably 
take months for a large application. Just figuring out all the small 
things that need updating is time-consuming. You will also need to 
update to Tomcat 10 to use Jakarta, which might be a problem for your 
DevOps/admins (it may require new systems).

If you will choose to hold back Tomcat 9 can be used with javax and 
Hibernate 5 still can handel both old and new HB Criteria APIs. 
Unfortunately, *Spring 5 already has security bugs* (CVE) and will /not/ 
receive free updates, so the upgrade from javax to jakarta is inevitable.

Good luck,
Maciej Nux

Claus Lüthje (2025-03-13 10:47):
> Hi
> I have a Maven-based client/server application, which is written in Java 8.
> The client is using JavaFX and communicating with the server using REST calls.
> I need to update to a current Java release.
> I use NetBeans since Version 7 for different employers.
> How can NetBeans help here?
> Thanks for your help.
> Regards
> Claus
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:[email protected]
> For additional commands, e-mail:[email protected]
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.