[lworld] RFR: 8351362: Post-process @Strict annotation for testing [v3]

Chen Liang liach at openjdk.org
Tue Mar 18 20:08:23 UTC 2025


On Tue, 18 Mar 2025 19:24:33 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> Chen Liang has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix a bug and enhance tests
>
> test/lib/jdk/test/lib/value/Strict.java line 1:
> 
>> 1: /*
> 
> Can we use import `jdk.internal.vm.annotation.Strict` and not introduce a duplicate annotation?
> This code is already `using jdk.internal.vm.annotation.NullRestricted`.
> 
> And/or add a comment here indicating it is an intentional duplication.

@dansmithcode aims to migrate all usages of the internal strict to this test-specific strict. This is actually the reason behind this PR - annotations in the Java Language must not change program semantics.

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

PR Review Comment: https://git.openjdk.org/valhalla/pull/1395#discussion_r2001899755


More information about the valhalla-dev mailing list