Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix broken test in precompiled run testing passing 3 args to no-arg m…

…ethod and expecting ArgumentError.

git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@7226 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information...
commit 7e99595d122cf4a47166debfa1af92f4c3661170 1 parent 99ec873
@headius headius authored
View
6 src/org/jruby/internal/runtime/methods/InvocationMethodFactory.java
@@ -224,11 +224,7 @@ public DynamicMethod getCompiledMethod(
// check arity
mv.aload(1);
mv.invokevirtual(p(ThreadContext.class), "getRuntime", sig(Ruby.class));
- if (scope.getRequiredArgs() == 0) {
- mv.getstatic(p(IRubyObject.class), "NULL_ARRAY", ci(IRubyObject[].class));
- } else {
- mv.aload(5);
- }
+ mv.aload(5);
mv.pushInt(scope.getRequiredArgs());
mv.pushInt(scope.getRequiredArgs());
mv.invokestatic(p(Arity.class), "checkArgumentCount", sig(int.class, Ruby.class, IRubyObject[].class, int.class, int.class));
Please sign in to comment.
Something went wrong with that request. Please try again.