Bug 79691 - [model] Rename of compilation unit doesn't rename top level enum
Summary: [model] Rename of compilation unit doesn't rename top level enum
Status: RESOLVED DUPLICATE of bug 77894
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 81187 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-29 13:22 EST by Dirk Baeumer CLA
Modified: 2005-01-24 12:45 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2004-11-29 13:22:44 EST
File EnumTest.java

public enum EnumTest {
	A;
}

- call ICompilationUnit#rename

-observe: the type name isn't updated to the new name. To be consistent with 
 classes and interface the  top level name should be updated as well.
Comment 1 Jerome Lanneluc CLA 2004-12-10 12:37:00 EST
Underlying JDOM doesn't support Enums. This should be fixed when we rewrite the
JavaModelOperations to use the DOM AST.
Comment 2 Dirk Baeumer CLA 2004-12-15 11:25:49 EST
*** Bug 81187 has been marked as a duplicate of this bug. ***
Comment 3 Markus Keller CLA 2005-01-17 11:20:08 EST
Now that's strange:

When I start with a clean workspace and try this in a new 5.0 project (set
project-specific compiler compliance setting to 5.0), then the enum name is not
updated.

On the other hand, when I change the workspace compiler compliance setting to
5.0,  the enum type name is updated correctly.
Comment 4 Jerome Lanneluc CLA 2005-01-24 12:45:49 EST

*** This bug has been marked as a duplicate of 77894 ***