On Sat, 1 Aug 2026 04:52:19 GMT, Shaojin Wen <[email protected]> wrote:

>> The static field VarHandle is missing null checks that blocks incoming nulls.
>> 
>> The fix is simple; the overwhelming changes come from these areas:
>> 1. To introduce a null-restricted set of fields and values, we need to use 
>> early initialization and null-restricted array creation for our test 
>> templates.
>> 2. Added `test(InstanceField|StaticField|Array)NullPointerException` to 
>> `VarHandleTest(MethodHandle|)AccessNullRestrictedValue` for the effective 
>> unit tests. Without the patch, the `testStaticFieldNullPointerException` 
>> fails.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Reviewed. Suggestions are inline.
> 
> _— qwen3.8-max-preview via Qwen Code /review_

@wenshao, contributions (including PR comments) to OpenJDK are expected to 
comply with the Generative AI policy https://openjdk.org/legal/ai.

Your comments in this PR, as well as some other PRs recently, appear to have 
been created by a generative AI tool. They violate the policy linked above. 
Please delete your comments from this PR as well as a few other similar ones.

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

PR Comment: https://git.openjdk.org/jdk/pull/32115#issuecomment-5149921916

Reply via email to