JDK-8057919 Class.getSimpleName() should work for non-JLS compliant class names
Jochen Theodorou
blackdrag at gmx.org
Tue Jun 16 04:29:15 UTC 2015
Am 15.06.2015 18:04, schrieb Vladimir Ivanov:
[...]
> In order to make the class non-anonymous again, you have to specify
> inner_name_index and, optionally, outer_class_info_index.
ok... let me try to understand this better... taking this Java source
> public class Test {
> public static void main(String[] args) {
> class X{}
> Runnable foo = new Runnable(){public void run(){}};
> }}
I get for Test
> InnerClasses:
> static #2; //class Test$1
> #12= #11; //X=class Test$1X
Is it the #12=#11 part which tells me X is no anonymous class? Is #11
the inner_name_index?
bye Jochen
--
Jochen "blackdrag" Theodorou
blog: http://blackdragsview.blogspot.com/
More information about the core-libs-dev
mailing list