Feedback on JEP draft: Lazy Constants (Second Preview)
Per-Ake Minborg
per-ake.minborg at oracle.com
Fri Sep 26 10:27:37 UTC 2025
Thanks for the encouragement, Mark!
Cheers,
Per
________________________________
From: core-libs-dev <core-libs-dev-retn at openjdk.org> on behalf of Mark Paluch <mpaluch at paluch.biz>
Sent: Friday, September 26, 2025 10:49 AM
To: core-libs-dev at openjdk.org <core-libs-dev at openjdk.org>
Subject: Re: Feedback on JEP draft: Lazy Constants (Second Preview)
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/595f5185/attachment-0001.htm>
More information about the core-libs-dev
mailing list