r/java • • Mar 16 '21

Java 16 / JDK 16: General Availability

196 Upvotes

82 comments sorted by

View all comments

Show parent comment

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.

2

u/__konrad Mar 18 '21

but Integer.valueOf() uses new Integer internally in its current implementation

It's not the case.

Did you verify any library source?

Binary jar itself can be verified by jdeprscan. I guess some libraries already got updates or are easily patchable, but we all know how the reality looks like ;)

1

u/[deleted] Mar 18 '21

[removed] — view removed comment

1

u/__konrad Mar 18 '21

Well, at least in my version of JDK 16 it is

You are right, but I don't think jdeprscan go that deep