usage of Class#getSimpleName() in MethodType#toString()
Jochen Theodorou
blackdrag at gmx.org
Tue Sep 9 11:08:10 UTC 2014
thanks
Am 09.09.2014 12:13, schrieb Vladimir Ivanov:
> Jochen,
>
> Thanks for the report. I agree with your evaluation.
> I filed JDK-8057919 [1] to track that.
>
> Best regards,
> Vladimir Ivanov
>
> [1] https://bugs.openjdk.java.net/browse/JDK-8057919
>
> On 9/9/14, 1:33 PM, Jochen Theodorou wrote:
>> so there is no good reason for that?
>>
>> Am 02.09.2014 10:59, schrieb Jochen Theodorou:
>>> Hi,
>>>
>>> I just wanted to ask, why Class#getSimpleName() is used in
>>> MethodType#toString(). People knowing this method from Class will also
>>> know that getSimpleName makes assumption about the inner class names,
>>> that are based on the JLS, which allows only a fraction of the names the
>>> JVM allows. Resulting in things like this:
>>>
>>>> java.lang.InternalError: Malformed class name
>>>> at java.lang.Class.getSimpleName(Class.java:1317)
>>>> at java.lang.invoke.MethodType.toString(MethodType.java:724)
>>>> at java.lang.String.valueOf(String.java:2979)
>>>> at java.lang.StringBuilder.append(StringBuilder.java:131)
>>>> at
>>>> org.codehaus.groovy.vmplugin.v7.Selector$MethodSelector.<init>(Selector.java:477)
>>>>
>>>>
>>>>
>>>
>>> bye Jochen
>>>
>>>
>>
>>
> _______________________________________________
> mlvm-dev mailing list
> mlvm-dev at openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
--
Jochen "blackdrag" Theodorou - Groovy Project Tech Lead
blog: http://blackdragsview.blogspot.com/
german groovy discussion newsgroup: de.comp.lang.misc
For Groovy programming sources visit http://groovy-lang.org
More information about the mlvm-dev
mailing list