RFR: JDK-8028055: (reflect) invoking Method/Constructor in anonymous classes breaks with -Dsun.reflect.noInflation=true

Joel Borggren-Franck joel.franck at oracle.com
Fri Nov 8 13:34:15 UTC 2013


Hi

Please review fix for: https://bugs.openjdk.java.net/browse/JDK-8028055
(reflect) invoking Method/Constructor in anonymous classes breaks with
-Dsun.reflect.noInflation=true

As Peter observed here [1] the current fix is incomplete as it does not
work when -Dsun.reflect.noInflation=true is set.

Also included is a modification of ReflectUtil.isVMAnonymousClass(cls)
to not allocate new Strings, guided by performance numbers from Peter
[2].

webrev here: http://cr.openjdk.java.net/~jfranck/8028055/webrev.00/

[1] http://mail.openjdk.java.net/pipermail/core-libs-dev/2013-November/022872.html
[2] http://mail.openjdk.java.net/pipermail/core-libs-dev/2013-November/022955.html

cheers
/Joel



More information about the core-libs-dev mailing list