Skip to content

Instantly share code, notes, and snippets.

@aurelian
Created May 18, 2009 15:01
Show Gist options
  • Select an option

  • Save aurelian/113534 to your computer and use it in GitHub Desktop.

Select an option

Save aurelian/113534 to your computer and use it in GitHub Desktop.
generate-method-classes:
_gmc_internal_:
[echo] Generating invokers...
[java] java.lang.ArrayIndexOutOfBoundsException: 0
[java] at org.jruby.internal.runtime.methods.InvocationMethodFactory.loadArguments(InvocationMethodFactory.java:964)
[java] at org.jruby.internal.runtime.methods.InvocationMethodFactory.createAnnotatedMethodInvocation(InvocationMethodFactory.java:1242)
[java] at org.jruby.internal.runtime.methods.InvocationMethodFactory.getAnnotatedMethodClass(InvocationMethodFactory.java:743)
[java] at org.jruby.internal.runtime.methods.InvocationMethodFactory.getAnnotatedMethodClass(InvocationMethodFactory.java:582)
[java] at org.jruby.anno.InvokerGenerator.main(InvokerGenerator.java:41)
[java] Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
[java] at org.jruby.internal.runtime.methods.InvocationMethodFactory.loadArguments(InvocationMethodFactory.java:964)
[java] at org.jruby.internal.runtime.methods.InvocationMethodFactory.createAnnotatedMethodInvocation(InvocationMethodFactory.java:1242)
[java] at org.jruby.internal.runtime.methods.InvocationMethodFactory.getAnnotatedMethodClass(InvocationMethodFactory.java:743)
[java] at org.jruby.internal.runtime.methods.InvocationMethodFactory.getAnnotatedMethodClass(InvocationMethodFactory.java:582)
[java] at org.jruby.anno.InvokerGenerator.main(InvokerGenerator.java:41)
@JRubyMethod(name = "do_something", required = 1, meta = true)
public static IRubyObject do_something(ThreadContext context, IRubyObject obj) {
System.out.println("Yay! It does something!");
return context.getRuntime().newBoolean(false);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment