On Wed, 15 May 2024 08:53:32 GMT, ExE Boss <d...@openjdk.org> wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Revise docs for ofBackground() > > src/java.base/share/classes/jdk/internal/lang/StableValue.java line 1: > >> 1: /* > > Maybe also add `StableValue::<T>ofLazy(Supplier<? extends T>)` which > behaves more like the original **Computed Constants** JEP draft?
There is a method `StableValue::asSupplier` that is similar to the former ComputedConstant behavior. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18794#discussion_r1601840547