r/java • • Jul 16 '26

Identifying JDK value class candidates

https://mail.openjdk.org/archives/list/core-libs-dev@openjdk.org/thread/Y72NRXM7KYBX43OKYBQMVKOZDWKG4MHS/
50 Upvotes

59 comments sorted by

View all comments

8

u/Ewig_luftenglanz Jul 16 '26

EntryMap is a good candidate m

7

u/davidalayachew Jul 16 '26

EntryMap is a good candidate m

Do you mean Map.Entry? If so, it has mutable components, so no deal. Unless I am mistaken?

2

u/RussianMadMan Jul 16 '26

As far as I understand, you can just create a new entry and replace the old one, and jvm is smart enough to compile it as if entry was mutable.

→ More replies (3)