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 10893 - "go to source" gets confused by method calls in method args
Summary: "go to source" gets confused by method calls in method args
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: Other Linux
: P3 blocker (vote)
Assignee: Martin Roskanin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-03-31 21:57 UTC by Henry Story
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The Child class (382 bytes, text/plain)
2001-07-20 20:42 UTC, Henry Story
Details
the Other class (295 bytes, text/plain)
2001-07-20 20:42 UTC, Henry Story
Details
The Parent class (409 bytes, text/plain)
2001-07-20 20:42 UTC, Henry Story
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henry Story 2001-03-31 21:57:02 UTC
If a method call contains an arg with a method call, the gotosource functionality goes 
to the source of the method invoked in the args instead of the method on which the 
cursor is located.

For example:
super.show( _other.render(),4 );

On the attached code in the Child class.
 1. placed the mouse above the "show" call
 2. click the right button
 3. select the goto source menu item (or press Alt-o)
 
Netbeans then opens the buffer for the Other class and places the cursor at the 
render() method. It should open the Parent class and place the cursor at the 
show(String,int) method.

This occurs in 3.2 and deveopment release.
Comment 1 Henry Story 2001-03-31 21:58:22 UTC
Created attachment 932 [details]
The Child class
Comment 2 Henry Story 2001-03-31 22:00:30 UTC
Created attachment 933 [details]
the Other class
Comment 3 Henry Story 2001-03-31 22:02:15 UTC
Created attachment 934 [details]
The Parent class
Comment 4 Henry Story 2001-03-31 22:04:36 UTC
note: I updated the parser database with "all" selected for all fields.
Comment 5 R. Schiess 2001-08-23 13:13:30 UTC
I have a similar problem with the line

      GARTextArea txtBesch = new GARTextArea(1,1, 

when I place the mouse on the first "GARTextArea" it works.
When I place it on the second one, a false class is loaded.
When I change the souce to
      GARTextArea txtBesch = new GARTextArea(1,1)
it works too.
My OS is W2K, the NetBeans version is 3.2.1

Comment 6 Jan Zajicek 2001-09-25 18:52:35 UTC
Moving to editor. Feel free to reassign if not yours, thanks.
Comment 7 Martin Roskanin 2001-09-26 17:29:47 UTC
fixed in [maintrunk] 

GoToSource now works for overloaded methods correctly.
Also fix for distinguish method and parameter has been applied.
  
method(|Button.
GoToSource in the above example (| is a caret position) will not
process Button (as it was before) but the method.

/cvs/editor/src/org/netbeans/modules/editor/java/JavaKit.java,v  <--  
JavaKit.java
new revision: 1.28; previous revision: 1.27
Comment 8 Quality Engineering 2003-06-30 18:03:29 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 9 Quality Engineering 2003-06-30 18:08:51 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.