Bug 183513 - [rename] Misleading inline rename preview for static method hiding
Summary: [rename] Misleading inline rename preview for static method hiding
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 trivial (vote)
Target Milestone: 3.3.1   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 186114
Blocks:
  Show dependency tree
 
Reported: 2007-04-21 17:52 EDT by Missing name Mising name CLA
Modified: 2008-05-08 12:24 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Missing name Mising name CLA 2007-04-21 17:52:01 EDT
3.3M6 I20070323-1616

In the following code (single source file):

public class X {
	public static void method() {
	}
}

class Y extends X {
	public static void method() {
	}
}

Go to either method and invoke inline rename (Alt-Shift-R).  Both unrelated methods are marked for renaming.  Once one is changed the false match reverts to its original name.
Comment 1 Martin Aeschlimann CLA 2007-04-23 12:00:23 EDT
Bug is in LinkedNodeFinder
Comment 2 Martin Aeschlimann CLA 2007-04-23 12:00:49 EDT
fixed > 20070423
Comment 3 Missing name Mising name CLA 2007-05-06 20:45:34 EDT
I am still seeing this in 3.3M7 I20070503-1400: Renaming one of the methods in-place also modifies the other, leading to a misleading in-editor preview.  When Enter is pressed the other method correctly reverts.
Comment 4 Martin Aeschlimann CLA 2007-05-09 06:29:12 EDT
The reason is bug 186114 in JDT.core.

Comment 5 Martin Aeschlimann CLA 2008-05-08 12:24:18 EDT
This got fixed with bug 186114 being fixed.