Precision for JDK-8060012 Class.isAnonymousClass() returns false when class major number is 48.

Alexandre Bartel alexandre.bartel at cased.de
Tue Oct 14 11:17:46 UTC 2014


Hi,

Regarding issue JDK-8060012
https://bugs.openjdk.java.net/browse/JDK-8060012

I have tried to run the code using the following IBM JVM:

java version "1.7.0"
Java(TM) SE Runtime Environment (build pxa6470_27-20131115_04)
IBM J9 VM (build 2.7, JRE 1.7.0 Linux amd64-64 Compressed References
20131114_175264 (JIT enabled, AOT enabled)
J9VM - R27_Java727_GA_20131114_0833_B175264
JIT  - tr.r13.java_20131113_50523
GC   - R27_Java727_GA_20131114_0833_B175264_CMPRSS
J9CL - 20131114_175264)
JCL - 20131113_01 based on Oracle 7u45-b18

And the result is always the expected result:

isAnonymousClass() always returns true, as expected, even when the
major version of the A$1 class is 48. This suggests that there is
enough information in classes with version 48 to know if the class is
anonymous and that OpenJDK is potentially not analyzing the class
correctly.

Thanks,
/Alexandre






More information about the core-libs-dev mailing list