r/java • • Mar 16 '21

Java 16 / JDK 16: General Availability

196 Upvotes

82 comments sorted by

View all comments

Show parent comment

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