RFR: 8358078: javap crashes with NPE on preview class file [v3]

Hannes Greule hgreule at openjdk.org
Mon Jun 2 20:06:34 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.

Hannes Greule has updated the pull request incrementally with one additional commit since the last revision:

  make test failures easier to read

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25569/files
  - new: https://git.openjdk.org/jdk/pull/25569/files/487b85f1..379c892d

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=25569&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25569&range=01-02

  Stats: 14 lines in 1 file changed: 1 ins; 1 del; 12 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