Permalink
Browse files

Tag for 1.1.3 (third time is a charm)

git-svn-id: http://svn.codehaus.org/jruby/tags/jruby-1_1_3@7228 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information...
2 parents 3e92abe + 7e99595 commit 1c10b217ca0c48ccd6235eba08e5fac23dd9eda3 @enebo enebo committed Jul 19, 2008
Showing with 1 addition and 5 deletions.
  1. +1 −5 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));

0 comments on commit 1c10b21

Please sign in to comment.