RFR: 8358078: javap crashes with NPE on preview class file

Chen Liang liach at openjdk.org
Mon Jun 2 13:00:51 UTC 2025


On Sun, 1 Jun 2025 04:53:46 GMT, Hannes Greule <hgreule at openjdk.org> wrote:

> 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.

That sounds right.

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

PR Comment: https://git.openjdk.org/jdk/pull/25569#issuecomment-2930578390


More information about the compiler-dev mailing list