RFR: 8358078: javap crashes with NPE on preview class file
Hannes Greule
hgreule at openjdk.org
Mon Jun 2 06:12:51 UTC 2025
On Mon, 2 Jun 2025 00:56:51 GMT, Chen Liang <liach at openjdk.org> wrote:
> 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.
Okay, sounds good. I guess that should be done in https://github.com/openjdk/jdk/blob/c5a1543ee3e68775f09ca29fb07efd9aebfdb33e/src/jdk.jdeps/share/classes/com/sun/tools/javap/ClassWriter.java#L120-L123 directly? And also for both cases returning `null`?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25569#issuecomment-2928964395
More information about the compiler-dev
mailing list