usage of Class#getSimpleName() in MethodType#toString()

Jochen Theodorou blackdrag at
Tue Sep 2 08:59:08 UTC 2014


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(
> at java.lang.invoke.MethodType.toString(
> at java.lang.String.valueOf(
> at java.lang.StringBuilder.append(
> at org.codehaus.groovy.vmplugin.v7.Selector$MethodSelector.<init>(

bye Jochen

Jochen "blackdrag" Theodorou - Groovy Project Tech Lead
german groovy discussion newsgroup: de.comp.lang.misc
For Groovy programming sources visit

More information about the mlvm-dev mailing list