Bug 79691

Summary: [model] Rename of compilation unit doesn't rename top level enum
Product: [Eclipse Project] JDT Reporter: Dirk Baeumer <dirk_baeumer>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r, martinae
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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