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 99388

Summary: Navigator gets confused by some usages of anonymous class
Product: ruby Reporter: Martin Krauskopf <mkrauskopf>
Component: NavigationAssignee: issues@ruby <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Martin Krauskopf 2007-03-29 15:16:50 UTC
Real-case example (and good for testing a lot of things).

1) Open debug.rb in your Ruby installation (just with File -> Open File...)
   (in my case it resides in /usr/lib/ruby/1.8/debug.rb)
2) Go to Navigator (Ctrl-7)
3) Find first "max_thread" item and click it -> will take you to appropriate
   location where @max_thread is defined.
4) Go to Navigator (Ctrl-7)
5) Find second "max_thread" item. Gives you to usage of @max_thread in the
   anonymous class for DEBUGGER__ which is wrong.
Comment 1 Jiri Kovalsky 2007-07-03 14:16:10 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 2 Torbjorn Norbye 2007-08-04 19:59:56 UTC
Confirmed. The difficulty is that Ruby fields aren't declared anywhere - they come into existence whenever they are first assigned. I usually track fields per 
class and only show the first assignment I encounter as the "declaration" in the navigator, but with anonymous innerclasses or even same file subclasses, this 
breaks down.

Will attempt something for 6.0.
Comment 3 Erno Mononen 2009-03-12 13:30:10 UTC
Still a problem in 6.7.