> 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
Chen Liang has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision: - Move test to right place - 8377334 - Merge branch 'bworld' of https://github.com/openjdk/valhalla into fix/nullchk-arg-types-itr - [bworld] Fix iterating arg types for null checks ------------- Changes: - all: https://git.openjdk.org/valhalla/pull/2056/files - new: https://git.openjdk.org/valhalla/pull/2056/files/e817d117..d1217af9 Webrevs: - full: https://webrevs.openjdk.org/?repo=valhalla&pr=2056&range=01 - incr: https://webrevs.openjdk.org/?repo=valhalla&pr=2056&range=00-01 Stats: 789 lines in 48 files changed: 198 ins; 440 del; 151 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
