@@ -72,7 +72,7 @@ public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule claz
72
72
if (hasKwargs ) args = IRRuntimeHelpers .frobnicateKwargsArgument (context , args , signature );
73
73
74
74
try {
75
- return (IRubyObject ) this .variable .invokeExact (context , staticScope , self , args , block , implementationClass , name );
75
+ return (IRubyObject ) this .variable .invokeExact (context , staticScope , self , args , block , implementationClass . getMethodLocation () , name );
76
76
}
77
77
catch (Throwable t ) {
78
78
Helpers .throwException (t );
@@ -85,7 +85,7 @@ public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule claz
85
85
if (specificArity != 0 ) return call (context , self , clazz , name , IRubyObject .NULL_ARRAY , block );
86
86
87
87
try {
88
- return (IRubyObject ) this .specific .invokeExact (context , staticScope , self , block , implementationClass , name );
88
+ return (IRubyObject ) this .specific .invokeExact (context , staticScope , self , block , implementationClass . getMethodLocation () , name );
89
89
}
90
90
catch (Throwable t ) {
91
91
Helpers .throwException (t );
@@ -98,7 +98,7 @@ public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule claz
98
98
if (specificArity != 1 ) return call (context , self , clazz , name , new IRubyObject []{arg0 }, block );
99
99
100
100
try {
101
- return (IRubyObject ) this .specific .invokeExact (context , staticScope , self , arg0 , block , implementationClass , name );
101
+ return (IRubyObject ) this .specific .invokeExact (context , staticScope , self , arg0 , block , implementationClass . getMethodLocation () , name );
102
102
}
103
103
catch (Throwable t ) {
104
104
Helpers .throwException (t );
@@ -111,7 +111,7 @@ public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule claz
111
111
if (specificArity != 2 ) return call (context , self , clazz , name , new IRubyObject [] {arg0 , arg1 }, block );
112
112
113
113
try {
114
- return (IRubyObject ) this .specific .invokeExact (context , staticScope , self , arg0 , arg1 , block , implementationClass , name );
114
+ return (IRubyObject ) this .specific .invokeExact (context , staticScope , self , arg0 , arg1 , block , implementationClass . getMethodLocation () , name );
115
115
}
116
116
catch (Throwable t ) {
117
117
Helpers .throwException (t );
@@ -124,7 +124,7 @@ public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule claz
124
124
if (specificArity != 3 ) return call (context , self , clazz , name , new IRubyObject [] {arg0 , arg1 , arg2 }, block );
125
125
126
126
try {
127
- return (IRubyObject ) this .specific .invokeExact (context , staticScope , self , arg0 , arg1 , arg2 , block , implementationClass , name );
127
+ return (IRubyObject ) this .specific .invokeExact (context , staticScope , self , arg0 , arg1 , arg2 , block , implementationClass . getMethodLocation () , name );
128
128
}
129
129
catch (Throwable t ) {
130
130
Helpers .throwException (t );
@@ -137,7 +137,7 @@ public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule claz
137
137
if (hasKwargs ) args = IRRuntimeHelpers .frobnicateKwargsArgument (context , args , signature );
138
138
139
139
try {
140
- return (IRubyObject ) this .variable .invokeExact (context , staticScope , self , args , Block .NULL_BLOCK , implementationClass , name );
140
+ return (IRubyObject ) this .variable .invokeExact (context , staticScope , self , args , Block .NULL_BLOCK , implementationClass . getMethodLocation () , name );
141
141
}
142
142
catch (Throwable t ) {
143
143
Helpers .throwException (t );
@@ -150,7 +150,7 @@ public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule claz
150
150
if (specificArity != 0 ) return call (context , self , clazz , name , IRubyObject .NULL_ARRAY , Block .NULL_BLOCK );
151
151
152
152
try {
153
- return (IRubyObject ) this .specific .invokeExact (context , staticScope , self , Block .NULL_BLOCK , implementationClass , name );
153
+ return (IRubyObject ) this .specific .invokeExact (context , staticScope , self , Block .NULL_BLOCK , implementationClass . getMethodLocation () , name );
154
154
}
155
155
catch (Throwable t ) {
156
156
Helpers .throwException (t );
@@ -163,7 +163,7 @@ public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule claz
163
163
if (specificArity != 1 ) return call (context , self , clazz , name , new IRubyObject []{arg0 }, Block .NULL_BLOCK );
164
164
165
165
try {
166
- return (IRubyObject ) this .specific .invokeExact (context , staticScope , self , arg0 , Block .NULL_BLOCK , implementationClass , name );
166
+ return (IRubyObject ) this .specific .invokeExact (context , staticScope , self , arg0 , Block .NULL_BLOCK , implementationClass . getMethodLocation () , name );
167
167
}
168
168
catch (Throwable t ) {
169
169
Helpers .throwException (t );
@@ -176,7 +176,7 @@ public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule claz
176
176
if (specificArity != 2 ) return call (context , self , clazz , name , new IRubyObject [] {arg0 , arg1 }, Block .NULL_BLOCK );
177
177
178
178
try {
179
- return (IRubyObject ) this .specific .invokeExact (context , staticScope , self , arg0 , arg1 , Block .NULL_BLOCK , implementationClass , name );
179
+ return (IRubyObject ) this .specific .invokeExact (context , staticScope , self , arg0 , arg1 , Block .NULL_BLOCK , implementationClass . getMethodLocation () , name );
180
180
}
181
181
catch (Throwable t ) {
182
182
Helpers .throwException (t );
@@ -189,7 +189,7 @@ public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule claz
189
189
if (specificArity != 3 ) return call (context , self , clazz , name , new IRubyObject [] {arg0 , arg1 , arg2 }, Block .NULL_BLOCK );
190
190
191
191
try {
192
- return (IRubyObject ) this .specific .invokeExact (context , staticScope , self , arg0 , arg1 , arg2 , Block .NULL_BLOCK , implementationClass , name );
192
+ return (IRubyObject ) this .specific .invokeExact (context , staticScope , self , arg0 , arg1 , arg2 , Block .NULL_BLOCK , implementationClass . getMethodLocation () , name );
193
193
}
194
194
catch (Throwable t ) {
195
195
Helpers .throwException (t );
0 commit comments