Precision for JDK-8060012 Class.isAnonymousClass() returns false when class major number is 48.
Joe Darcy
joe.darcy at oracle.com
Tue Oct 21 04:07:39 UTC 2014
Hello,
I don't know if IBM's implementation uses any VM hooks not found in
OpenJDK. If their JDK only uses common reflection machinery, a patch for
this functionality for OpenJDK would be welcome for evaluation.
Cheers,
-Joe
On 10/14/2014 4:17 AM, Alexandre Bartel wrote:
> 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