On 06/15/2011 09:27 PM, Charles Oliver Nutter wrote: > On Wed, Jun 15, 2011 at 10:32 AM, Tom Rodriguez > <tom.rodrig...@oracle.com> wrote: >> I get the following message when I try to run it: >> >> InvokeDynamicSupport.java:468:in `invocationFallback': >> java.lang.invoke.WrongMethodTypeException: >> (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject; >> cannot be called with a different arity as >> ([Ljava/lang/Object;)Ljava/lang/Object; > This happens when InvokeDynamicSupport is not build with Java 7. That > sometimes happens to me because I use Java 6 frequently, and I haven't > figured out a clean way to have a single build that supports both Java > 6 and Java 7. > > It's due to the compiler not handling the signature-polymorphic > MethodHandle.invokeExact calls.
You can use invokeWithArguments instead of invokeExact. Rémi _______________________________________________ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev