Indy crash

Rémi Forax forax at univ-mlv.fr
Wed Jun 15 12:42:20 PDT 2011


On 06/15/2011 09:27 PM, Charles Oliver Nutter wrote:
> On Wed, Jun 15, 2011 at 10:32 AM, Tom Rodriguez
> <tom.rodriguez at 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



More information about the mlvm-dev mailing list