strange ClassFormatError with indy

Jochen Theodorou blackdrag at gmx.org
Thu Aug 30 06:19:12 PDT 2012


Hi all,

I originally wrote that to the asm list, but nobody seems to know there. 
Anyway, for my generated bytecode the verifier complains with this message:

java.lang.ClassFormatError: Method "<init>" in class test has illegal 
signature "(Ljava/lang/Class;Ljava/util/Map;)Ljava/lang/Object;"

Now... there is not a single <init> method of that signature in the 
class test. What is new though (before it worked) is this indy call:

>     INVOKEDYNAMIC <init>(Ljava/lang/Class;Ljava/util/Map;)Ljava/lang/Object; [
>       // handle kind 0x6 : INVOKESTATIC
>       org/codehaus/groovy/vmplugin/v7/IndyInterface.bootstrap((Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;)
>       // arguments: none

And this call has the signature the verifier complains about. Is this an 
illegal invokedynamic call?

bye blackdrag

-- 
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