Integrated: [bworld] Fix iterating arg types for null checks

Chen Liang liach at openjdk.org
Mon Feb 9 21:52:24 UTC 2026


On Thu, 5 Feb 2026 22:53:26 GMT, Chen Liang <liach at openjdk.org> wrote:

> Discovered this bug when prototyping core reflection. Without this fix, the test fails with:
> 
> testRuntimeChecks/src/Test/Test.java:7: error: bad operand type int for unary operator '<*nullrestrictedchk*>'
>         t.work(args[0], a, b);
>                         ^
> testRuntimeChecks/src/Test/Test.java:7: error: bad operand type boolean for unary operator '<*nullrestrictedchk*>'
>         t.work(args[0], a, b);
>                            ^
> Note: testRuntimeChecks/src/Test/Test.java uses preview features of Java SE 27.
> Note: Recompile with -Xlint:preview for details.
> 2 errors

This pull request has now been integrated.

Changeset: 9535642b
Author:    Chen Liang <liach at openjdk.org>
URL:       https://git.openjdk.org/valhalla/commit/9535642b89befd73dc894f0d639f941b36b992f6
Stats:     27 lines in 6 files changed: 16 ins; 0 del; 11 mod

[bworld] Fix iterating arg types for null checks

Reviewed-by: vromero

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

PR: https://git.openjdk.org/valhalla/pull/2056


More information about the valhalla-dev mailing list