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

Summary: Infinate Recursive Method Crashes IRB
Product: ruby Reporter: William Leonard <bleonard>
Component: PlatformAssignee: Martin Krauskopf <mkrauskopf>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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.