r/java • u/davidalayachew • Jul 16 '26
Identifying JDK value class candidates
https://mail.openjdk.org/archives/list/core-libs-dev@openjdk.org/thread/Y72NRXM7KYBX43OKYBQMVKOZDWKG4MHS/
50
Upvotes
View all comments
Show parent comment
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.