RFR: 8358078: javap crashes with NPE on preview class file
Chen Liang
liach at openjdk.org
Mon Jun 2 00:59:58 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.
I recommend we fallback to use CFFV.latest() explicitly for now. FYI we will likely add a new CFFV for all preview features, which we will likely use as the default if we encounter an old preview class file. We can then swap latest() with that preview cffv.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25569#issuecomment-2928241509
More information about the compiler-dev
mailing list