On Tue, 25 Mar 2025 15:52:07 GMT, Per Minborg <pminb...@openjdk.org> wrote:

>> Implement JEP 502.
>> 
>> The PR passes tier1-tier3 tests.
>
> Per Minborg has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Revamp toString() methods

src/java.base/share/classes/jdk/internal/lang/stable/EmptyStableFunction.java 
line 43:

> 41:  * @param <R>          the type of the result of the function
> 42:  */
> 43: record EmptyStableFunction<T, R>(Function<? super T, ? extends R> 
> original) implements Function<T, R> {

With the simplification of the toString methods, I think this could be replaced 
with a singleton instance of StableFunction that was initialized with an empty 
map and an arbitrary function (that will never be called).

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/23972#discussion_r2013029409

Reply via email to