This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 124594 - Infinate Recursive Method Crashes IRB
Summary: Infinate Recursive Method Crashes IRB
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Platform (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-02 17:25 UTC by William Leonard
Modified: 2008-08-18 23:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description William Leonard 2008-01-02 17:25:33 UTC
Given the following class:

class Recursive
  
  def method_missing(method)
    puts "There was no #{methd} method, but please try again."
  end
end

(note the spelling error #{methd})

Open IRB
> load 'main.rb'
> r = Recursive.new
> r.anything

IRB will crash. Running this from the command line smartly returns a stack level too deep error.
Comment 1 Martin Krauskopf 2008-02-27 15:15:12 UTC
Confirmed. Quite an edge case. Likely not for 6.1.
Comment 2 Martin Krauskopf 2008-08-18 23:49:45 UTC
Was 'jirb' issue, I guess which we are not using anymore. Thus fixed.