Community
Participate
Working Groups
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.
Underlying JDOM doesn't support Enums. This should be fixed when we rewrite the JavaModelOperations to use the DOM AST.
*** Bug 81187 has been marked as a duplicate of this bug. ***
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.
*** This bug has been marked as a duplicate of 77894 ***