r/java • • Mar 16 '21

Java 16 / JDK 16: General Availability

196 Upvotes

82 comments sorted by

View all comments

30

u/greenrobot_de Mar 16 '21

https://openjdk.java.net/projects/jdk/16/ might be better as it links to details of the main new features.

3

u/__konrad Mar 16 '21

-10

u/slaymaker1907 Mar 17 '21

It seems like an absolutely horrible idea to remove constructors to fundamental classes like java.lang.Boolean. Anyone know if there is are associated JSRs to voice concern? I don't use this stuff, but the risk of these APIs being used all over the play is way too high to remove them.

3

u/[deleted] Mar 17 '21

[removed] — view removed comment

2

u/__konrad Mar 17 '21

I just quickly scanned a few various older jar files (from 2012-2018) using jdeprscan and basically most libraries used new Integer...

1

u/[deleted] Mar 18 '21

[removed] — view removed comment

2

u/joppux Mar 18 '21

The best existing free tool for RTF generation in Java is still the old iText library, which dates to 2009. It uses these constructors widely.

Many old unsupported but still useful Swing libraries use them too.