| Summary: | [rename] Method rename fails and garbles code | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Sharon Ben Asher <Sharon.Ben-Asher> | ||||||||
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> | ||||||||
| Status: | CLOSED DUPLICATE | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | daniel_megert, srikanth_sankaran | ||||||||
| Version: | 3.8 | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows 7 | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Sharon Ben Asher
Created attachment 210047 [details]
Java source file before the rename operation. passes compilation
Created attachment 210048 [details]
Java source file after the rename operation.
reproduction details: 1) on the "before" file, go to line 223, where method getHashKeyAttributeValue is defined 2) try to rename (using alt+shift+R) to createHashKeyAttributeValue (problem was just reproduced using copy+paste of new name) Created attachment 210051 [details]
trial project
Your example has too many unresolved references for us to reproduce in our workspace without getting the other dependencies.
I tried to get rid of all the errors by creating dummy classes and methods (see attached project), and then tried the refactoring. It works perfectly for me. Can you please attach your project or consturct a stand-alone test case which I can copy into my workbench and reproduce? Thanks!
i tried to create a test case project and failed to reproduce meantime in the original project i did extensive refactoring and i seperated the parent and the inner classes and now the problem is not reproduced anymore the bug can be closed until it is reproduced once again (In reply to comment #5) > i tried to create a test case project and failed to reproduce > meantime in the original project i did extensive refactoring and i seperated > the parent and the inner classes and now the problem is not reproduced anymore > the bug can be closed until it is reproduced once again I found a bunch of old issues in many instances closed as not eclipse issues: https://bugs.eclipse.org/bugs/show_bug.cgi?id=144798 https://bugs.eclipse.org/bugs/show_bug.cgi?id=145866 https://bugs.eclipse.org/bugs/show_bug.cgi?id=287539 In any case, before closing this as not reproducible, we'll let the UI folks to have a look to see if something rings a bell (admittedly there is not a whole lot here) hmm... I am using svn (sliksvn client) so perhaps this is related... *** This bug has been marked as a duplicate of bug 287539 *** |