On Sun, 1 Jun 2025 04:53:46 GMT, Hannes Greule <hgre...@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

Reply via email to