jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JRuby
  • JRUBY-2120

Wrong stacktraces from exceptions about wrong number of arguments

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Vladimir Sizikov added a comment - 24/May/08 3:02 PM

The issue still exists in JRuby 1.1.1 (pre 1.1.2), r6779.

Show
Vladimir Sizikov added a comment - 24/May/08 3:02 PM The issue still exists in JRuby 1.1.1 (pre 1.1.2), r6779.
Hide
Permalink
Charles Oliver Nutter added a comment - 04/Feb/09 8:36 PM

Fixed in r9008 by pushing a backtrace frame immediately before raising the error. I think CompiledMethod still needs this fix, but it's substantially less common. I'll give it a go, though.

Show
Charles Oliver Nutter added a comment - 04/Feb/09 8:36 PM Fixed in r9008 by pushing a backtrace frame immediately before raising the error. I think CompiledMethod still needs this fix, but it's substantially less common. I'll give it a go, though.

People

  • Assignee:
    Charles Oliver Nutter
    Reporter:
    Vladimir Sizikov
Vote (0)
Watch (1)

Dates

  • Created:
    15/Feb/08 1:00 PM
    Updated:
    21/Mar/09 1:14 PM
    Resolved:
    04/Feb/09 8:36 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.