RFR: 8355022: Implement JEP 506: Scoped Values [v7]

Alan Bateman alanb at openjdk.org
Fri May 9 08:32:56 UTC 2025


On Thu, 8 May 2025 17:33:09 GMT, Andrew Haley <aph at openjdk.org> wrote:

>> Propose to finalize scoped values.
>> The only functional change is that the orElse() method no longer accepts a null argument.
>
> Andrew Haley has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fix merge

> I'm getting a test failure in [ClassFileVersionTest.java](https://github.com/openjdk/jdk/blob/master/test/hotspot/jtreg/runtime/ClassFile/ClassFileVersionTest.java#45) because `ScopedValue` is not a Preview API. Should I just fix the test to use some other Preview Class?

Chen offered to change this test to use the ClassFile API and construct the class with the preview minor number. The PR to change this test is reviewed so I think all good, nothing more to do here.

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

PR Comment: https://git.openjdk.org/jdk/pull/24923#issuecomment-2865640747


More information about the compiler-dev mailing list