Class-File API provides an option to filter unbound labels and optionally drop related enclosing structures. After performance-related optimizations, this option started causing a side effect where silently dropped structures result in a `NullPointerException` instead of the expected `IllegalArgumentException`.
This PR narrows that scenario and adds a test for it. Please review. Thank you, Adam --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - 8384653: Potential null pointer dereference in java.base/share/classes/jdk/internal/classfile/impl/StackMapGenerator.java Changes: https://git.openjdk.org/jdk/pull/31232/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31232&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8384653 Stats: 20 lines in 2 files changed: 15 ins; 3 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/31232.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/31232/head:pull/31232 PR: https://git.openjdk.org/jdk/pull/31232
