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

Hannes Greule hgreule at openjdk.org
Mon Jun 2 16:59: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:

  don't return null but latest as fallback

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

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

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

  Stats: 15 lines in 3 files changed: 3 ins; 7 del; 5 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