Feedback on JEP draft: Lazy Constants (Second Preview)
Mark Paluch
mpaluch at paluch.biz
Fri Sep 26 08:49:47 UTC 2025
Spring Data has a Lazy [0] type that is a nice fit conceptually and when used as field type without reserving too much name complexity. Therefore, +1 for renaming to Lazy.
Also, appreciate the successor JEP. Using StableValue with a Supplier (to back Spring Data’s Lazy with stable values) had some rough edges, the new approach is much more polished.
Cheers,
Mark
[0] https://github.com/spring-projects/spring-data-commons/blob/994bfd0305228d4a0a5f9d1ba8bfe2156bb68119/src/main/java/org/springframework/data/util/Lazy.java
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20250926/8915e51a/attachment.htm>
More information about the core-libs-dev
mailing list