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. > I also get messages like this: > > Message: <"target and fallback types must match: > (ThreadContext,IRubyObject,IRubyObject,String,IRubyObject)IRubyObject != > (ThreadContext,IRubyObject,I > RubyObject,String)IRubyObject"> > > when running many of the tests. My jruby is a fresh clone of > git://jruby.org/jruby.git. Toss me a couple of the tests that fail. I have not attempted to run the full test suite lately because a native library we need in some tests does not load on a non-universal OpenJDK build on OS X. - Charlie _______________________________________________ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev