Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.1RC1
-
Fix Version/s: JRuby 1.2
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:Latest JRuby 1.1RC1
Description
Arity checks are done before the method frame is pushed into the frame stack, and hence miss the most important info - the last frame:
"hello".sub
JRuby:
stacktrace.rb:1: wrong number of arguments (0 for 1) (ArgumentError)
MRI:
stacktrace.rb:1:in `sub': wrong number of arguments (0 for 2) (ArgumentError)
from stacktrace.rb:1
The issue still exists in JRuby 1.1.1 (pre 1.1.2), r6779.