Environment
Provide at least:
- JRuby version: 9.1.13.0
- Mac OSX
Expected Behavior
I have code something like:
#Java interface
interface MyJavaInterface {
void interfaceMethod(argItTakes)
}
#Ruby
class MyClass
include org.example.MyJavaInterface
# Note that we accidentally specify an extra arg here
def interfaceMethod(argItTakes, extraArgThatIsAccident)
end
def someOtherMethod
callJavaMethodThatInvokesAboveInterfaceMethodButWithOnlyOneArg
end
end
Actual Behavior
JRuby generates an ArgumentError: wrong number of arguments (1 for 2) that points to the line in someOtherMethod, when the real error is that we implemented the interface incorrectly. The stack trace shouldn't filter out the java in this case, but do the full stack trace to expose this.
Environment
Provide at least:
Expected Behavior
I have code something like:
Actual Behavior
JRuby generates an
ArgumentError: wrong number of arguments (1 for 2)that points to the line insomeOtherMethod, when the real error is that we implemented the interface incorrectly. The stack trace shouldn't filter out the java in this case, but do the full stack trace to expose this.