Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 326501

Summary: [rename] Rename class refactoring incorrectly replaces new name of class.
Product: [Eclipse Project] JDT Reporter: Oleg Atamanenko <oleg.atamanenko+eclipse>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: amj87.iitr, daniel_megert
Version: 3.7Keywords: needinfo
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
List of generated errors after class rename. none

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..