RFR[9]:Fix java/lang/invoke/MethodHandleImpl's use of Unsafe.defineAnonymousClass()
shilpi.rastogi at oracle.com
shilpi.rastogi at oracle.com
Wed May 11 11:24:09 UTC 2016
Hi All,
Please review the following-
https://bugs.openjdk.java.net/browse/JDK-8149574
Solution: Changed anonymous class package name with the package name of
its host class.
Two approaches to solve this-
1. Parse .class and get the class name index form constant pool and
patch it with new name
http://cr.openjdk.java.net/~srastogi/8149574/webrev.05/
2. Create class with new name (With ASM)
http://cr.openjdk.java.net/~srastogi/8149574/webrev.06/
Which approach is better?
Thanks,
Shilpi
More information about the core-libs-dev
mailing list