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

Rui Li duke at openjdk.org
Thu Aug 28 18:15:23 UTC 2025


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.

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

Commit messages:
 - Backport 9dd93c6a2c5fb4c3a9f2a063a7ab402f9292ad03

Changes: https://git.openjdk.org/jdk25u/pull/142/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk25u&pr=142&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8361497
  Stats: 100 lines in 2 files changed: 85 ins; 0 del; 15 mod
  Patch: https://git.openjdk.org/jdk25u/pull/142.diff
  Fetch: git fetch https://git.openjdk.org/jdk25u.git pull/142/head:pull/142

PR: https://git.openjdk.org/jdk25u/pull/142


More information about the jdk-updates-dev mailing list