Feedback on JEP 502: Stable Values (Preview)

David Vidal Escudero david.vidal.escudero at gmail.com
Wed Mar 26 06:09:12 UTC 2025


Good day,

I love this new feature, and it'll be really useful since I have lots of
use cases at real work to try it on.

However, I'd like to point out that a less verbose form of this feature
would be to pass a Supplier in the StableValue.of method, something like:

static final StableValue<OrderController> ORDERS =
> StableValue.of(OrderController::new);


Best regards, and thanks for your time.

David Vidal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20250326/a815cda0/attachment-0001.htm>


More information about the core-libs-dev mailing list