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

Bug 341851

Summary: [rename] Refactoring (renaming) gives "already exists" error for upper/lower case change
Product: [Eclipse Project] JDT Reporter: Anson Chu <anson.ch>
Component: UIAssignee: Dani Megert <daniel_megert>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: daniel_megert, pbenedict, sanchitbhatnagar
Version: 3.7   
Target Milestone: 3.8 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Anson Chu CLA 2011-04-04 17:50:35 EDT
Build Identifier: M20100909-0800

When I try to rename my project from "project1" to "Project1" using rightclick->refactor->rename, I get the error "A folder with that name already exists". I have to first change it to something else like "proj1" and then back to "Project1".

Reproducible: Always

Steps to Reproduce:
1. Create new java project name "project1"
2. Refactor the project name to "Project1"
3. Will see the error in the dialogue box not letting you continue.
Comment 1 Dani Megert CLA 2012-02-21 06:26:42 EST
Fixed in master: 7f9291ce60a54ed766ec040d129854eb263d7bba
Comment 2 Paul Benedict CLA 2012-02-21 18:05:37 EST
Is this fix also applicable to classes? For years, I've encountered this bug on Windows if I were to rename, for example, Foreach.java to ForEach.java
Comment 3 Dani Megert CLA 2012-02-22 02:31:33 EST
(In reply to comment #2)
> Is this fix also applicable to classes? 
No, that case got fixed long time ago.