Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326501 - [rename] Rename class refactoring incorrectly replaces new name of class.
Summary: [rename] Rename class refactoring incorrectly replaces new name of class.
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2010-09-29 05:16 EDT by Oleg Atamanenko CLA
Modified: 2010-12-02 04:16 EST (History)
2 users (show)

See Also:


Attachments
List of generated errors after class rename. (42.96 KB, image/png)
2010-09-29 05:17 EDT, Oleg Atamanenko CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Atamanenko CLA 2010-09-29 05:16:46 EDT
Build Identifier: Build id: I20100608-0911

I have Android Project. When I renamed one class from Command to Response eclipse performed incorrect rename.

It inserted Responsee, Responsese instead of correct response.

See attached screenshot with errors after refactoring.

Additionally, eclipse rejects to perform undo for this refactoring. 

Reproducible: Sometimes

Steps to Reproduce:
1. Rename class.
Comment 1 Oleg Atamanenko CLA 2010-09-29 05:17:32 EDT
Created attachment 179816 [details]
List of generated errors after class rename.
Comment 2 Ayushman Jain CLA 2010-09-29 05:41:30 EDT
(In reply to comment #0)
> Build Identifier: Build id: I20100608-0911
> 
> I have Android Project. When I renamed one class from Command to Response
> eclipse performed incorrect rename.
> 
> It inserted Responsee, Responsese instead of correct response.
> 
> See attached screenshot with errors after refactoring.
> 
> Additionally, eclipse rejects to perform undo for this refactoring. 

Can you please attach the project or a reproducible test case? 

Moving to JDT/UI for follow up.
Comment 3 Oleg Atamanenko CLA 2010-09-29 06:30:27 EDT
What do you need exactly? Only set of classes on which I work? Should I include .metadata directory from workspace? Please, provide more details, it is my first reported issue to eclipse, so I don't know what do you need exactly.
Comment 4 Dani Megert CLA 2010-09-29 08:41:09 EDT
> What do you need exactly? Only set of classes on which I work? Should I include
> .metadata directory from workspace? Please, provide more details, it is my
> first reported issue to eclipse, so I don't know what do you need exactly.
We need steps to reproduce the problem, e.g. how did you rename the class? From where (which editor/view) did you do it, etc..