[jdk17u-dev] RFR: 8272776: NullPointerException not reported

Alexey Pavlyutkin duke at openjdk.org
Wed Sep 14 17:28:08 UTC 2022


Hi! Here is backport of [8272776](https://bugs.openjdk.org/browse/JDK-8272776) fixing absent NPE in the case of null switch with default. Original patch is applied cleanly

Verification (amd64 / 20.04 LTS): test/langtools/tools/javac/patterns/NullSwitch.java (updated)
Regression (amd64 / 20.04 LTS): test/langtools/tools/javac

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

Commit messages:
 - Backport 93eec9a103de7f4d9a87eac5b295c9a50702ee94

Changes: https://git.openjdk.org/jdk17u-dev/pull/667/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=667&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8272776
  Stats: 18 lines in 2 files changed: 14 ins; 1 del; 3 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/667.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev pull/667/head:pull/667

PR: https://git.openjdk.org/jdk17u-dev/pull/667


More information about the jdk-updates-dev mailing list