[jdk25] RFR: 8361497: Scoped Values: orElse and orElseThrow do not access the cache

Chen Liang liach at openjdk.org
Thu Aug 28 02:35:42 UTC 2025


On Thu, 28 Aug 2025 01:14:20 GMT, Rui Li <duke at openjdk.org> wrote:

> Backport of https://bugs.openjdk.org/browse/JDK-8361497
> 
> Not clean due to the lack of https://bugs.openjdk.org/browse/JDK-8360884. The cherry pick conflict was caused by the a new test added in the JDK-8360884., [code](https://github.com/openjdk/jdk/commit/4df9c873452293ccde3c7dbcd64e1ced6b6af52e#diff-314e483e41a8dd49577b207c12683b369ab87b6de6da289b9f7e89aae5f412cbR227-R232). Based on the conversation in [JDK-8360884](https://bugs.openjdk.org/browse/JDK-8360884), it seems people are not comfortable to backport JDK-8360884 into 25 yet. The conflict was easy to resolve tho. Just remove the additional test brought by JDK-8360884.

Hello @rgithubli, what your PR is trying to do is to backport this to 25 GA. I do not believe this enhancement is ever [eligible for GA](https://openjdk.org/jeps/3#rc). You might wish to backport to the 25 updates, which is available at the master branch of https://github.com/openjdk/jdk25u instead.

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

PR Comment: https://git.openjdk.org/jdk/pull/26976#issuecomment-3231411155


More information about the core-libs-dev mailing list