javap has trouble with field annotated with ACC_STRICT
Chen Liang
chen.l.liang at oracle.com
Tue Aug 6 03:27:08 UTC 2024
Hi,
According to this issue below, javap would only decompile value classes with --enable-preview VM option.
[JDK-8333435] [lworld] javap prints strict field incorrectly - Java Bug System (openjdk.org)<https://bugs.openjdk.org/browse/JDK-8333435>
So we need to launch with "javap -J--enable-preview TargetClass"
P.S. Cc'ing Ethan as Ethan encountered the same problem in JVMLS today.
Chen Liang
________________________________
From: valhalla-dev <valhalla-dev-retn at openjdk.org> on behalf of Remi Forax <forax at univ-mlv.fr>
Sent: Monday, August 5, 2024 1:07 PM
To: valhalla-dev <valhalla-dev at openjdk.java.net>
Subject: javap has trouble with field annotated with ACC_STRICT
Hello,
before i forget, the javap version of the early access of Valhalla currently does not support field with the ACC_STRICT flag set.
$JAVA_HOME/bin/javap -private target/classes/com/github/forax/civilizer/value/Complex.class
Compiled from "Complex.java"
public final value class com.github.forax.civilizer.value.Complex {
Error: Fatal error: Unmatched bit position 0x800 for location FIELD
regard,
Rémi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/valhalla-dev/attachments/20240806/9dc19c82/attachment.htm>
More information about the valhalla-dev
mailing list