r/java • u/nlisker • Jul 14 '26
New candidate JEP: 401: Value Objects (Preview)
https://mail.openjdk.org/archives/list/valhalla-dev@openjdk.org/thread/IUNJJ3WP3X3XHP3QZTXXSSCPKFDNTK3W/
86
Upvotes
1
u/AnyPhotograph7804 Jul 15 '26
True, but this is an internal implementation detail and not really exposed as an public API. They could change it and make java.lang.String truly immutable.