Summary: | [quick fix] Rename within unit (ctrl-2-r) should support codeassist insert | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Philipe Mulet <philippe_mulet> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | VERIFIED DUPLICATE | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | daniel_megert, Olivier_Thomann |
Version: | 3.3 | ||
Target Milestone: | 3.6 M7 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Philipe Mulet
2007-04-13 09:35:27 EDT
The reason is the error range that consists of 'X.OLD_FIELD', not just 'OLD_FIELD'. Note that if you change both references to 'X.OLD_FIELD()', then this works. I filed bug 182459 against jdt.core This now works due to the fix for bug 182459. Note the typo in comment 0: p/X.java ----------------- package p; public class X { static int NEW_FIELD; ^^^^^^^^^^^^^^^^^^^^^^^^^^ The field needs to be public. } *** This bug has been marked as a duplicate of bug 182459 *** Verified for 3.6M7 using I20100425-2000. Note also that the scenario described in comment 0 is false as you cannot get the Rename in file (Ctrl-2, R) quick fix in versions before 3.6M7... Instead you have to use the "Change to 'NEW_FIELD'" one and observed that using 3.6M6 and before, only the first occurrence of OLD_FIELD is replaced although both are replaced using 3.6M7 :-) |