Skip to content

Commit 1ac2e59

Browse files
committedJan 25, 2018
Alias must pass its name, not given name.
1 parent 82fe95d commit 1ac2e59

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed
 

‎core/src/main/java/org/jruby/internal/runtime/methods/AliasMethod.java

+10-10
Original file line numberDiff line numberDiff line change
@@ -50,52 +50,52 @@ public AliasMethod(RubyModule implementationClass, DynamicMethod oldMethod, Stri
5050
}
5151

5252
@Override
53-
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name) {
53+
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused) {
5454
return oldMethod.call(context, self, klazz, name);
5555
}
5656

5757
@Override
58-
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg) {
58+
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, IRubyObject arg) {
5959
return oldMethod.call(context, self, klazz, name, arg);
6060
}
6161

6262
@Override
63-
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg1, IRubyObject arg2) {
63+
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, IRubyObject arg1, IRubyObject arg2) {
6464
return oldMethod.call(context, self, klazz, name, arg1, arg2);
6565
}
6666

6767
@Override
68-
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3) {
68+
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3) {
6969
return oldMethod.call(context, self, klazz, name, arg1, arg2, arg3);
7070
}
7171

7272
@Override
73-
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject[] args) {
73+
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, IRubyObject[] args) {
7474
return oldMethod.call(context, self, klazz, name, args);
7575
}
7676

7777
@Override
78-
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, Block block) {
78+
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, Block block) {
7979
return oldMethod.call(context, self, klazz, name, block);
8080
}
8181

8282
@Override
83-
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg1, Block block) {
83+
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, IRubyObject arg1, Block block) {
8484
return oldMethod.call(context, self, klazz, name, arg1, block);
8585
}
8686

8787
@Override
88-
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg1, IRubyObject arg2, Block block) {
88+
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, IRubyObject arg1, IRubyObject arg2, Block block) {
8989
return oldMethod.call(context, self, klazz, name, arg1, arg2, block);
9090
}
9191

9292
@Override
93-
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, Block block) {
93+
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, Block block) {
9494
return oldMethod.call(context, self, klazz, name, arg1, arg2, arg3, block);
9595
}
9696

9797
@Override
98-
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject[] args, Block block) {
98+
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String unused, IRubyObject[] args, Block block) {
9999
return oldMethod.call(context, self, klazz, name, args, block);
100100
}
101101

0 commit comments

Comments
 (0)
Please sign in to comment.