RFR: 8358078: javap crashes with NPE on preview class file
Hannes Greule
hgreule at openjdk.org
Sun Jun 1 06:08:29 UTC 2025
This change addresses a NPE in javap when trying to print a class with minorVersion != 0. With this change, we fall back to the methods that don't take a `ClassFileFormatVersion` in such case.
-------------
Commit messages:
- fix
- test
Changes: https://git.openjdk.org/jdk/pull/25569/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25569&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8358078
Stats: 107 lines in 2 files changed: 104 ins; 0 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/25569.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25569/head:pull/25569
PR: https://git.openjdk.org/jdk/pull/25569
More information about the compiler-dev
mailing list