r/programming • u/davidalayachew • Jul 16 '26
Dan Smith from OpenJDK -- Identifying JDK value class candidates
https://mail.openjdk.org/archives/list/core-libs-dev@openjdk.org/thread/Y72NRXM7KYBX43OKYBQMVKOZDWKG4MHS/
5
Upvotes
View all comments
Show parent comment
1
u/davidalayachew Jul 16 '26
I'd challenge this.
How often do you use
java.util.Listcompared to your own classes? And that ignores how often the JVM you are running on usesListrather than your own classes.At the end of the day, finding the commonly used classes in the JDK and turning them into value classes is clearly an important thing to do, and likely important to do before going live -- lest people get the false impression that Value Classes are not nearly as powerful as they seem.
And frankly, turning classes like this value is much lower effort work. The JDK is already heavily specified, so it's not terribly difficult to find out which classes are clearly valuable being value classes. I don't think they intend to shake down the entire JDK and find and modify every value-capable class before releasing JEP 401.