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
-------------
Commit messages:
- [bworld] Fix iterating arg types for null checks
Changes: https://git.openjdk.org/valhalla/pull/2056/files
Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2056&range=00
Stats: 14 lines in 2 files changed: 13 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/valhalla/pull/2056.diff
Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2056/head:pull/2056
PR: https://git.openjdk.org/valhalla/pull/2056