Community
Participate
Working Groups
When I have statically imported an enum and then do a Source > Organize Imports, my import disappears. Example: ------------ package com.jamesots.testenum; import static com.jamesots.testenum.MyEnum.*; public class EnumTest { public static void main(String[] args) { MyEnum e; e = BOB; } } ------------ package com.jamesots.testenum; public enum MyEnum { JIM, TOM, BOB } ------------ Note that it disappears if I explicitly import MyEnum.BOB as well.
Martin, is this a dup of https://bugs.eclipse.org/bugs/show_bug.cgi?id=77398.
is a dup of bug 77398 added a test case ImportOrganizeTest.test_bug78716 *** This bug has been marked as a duplicate of 77398 ***
Back to JDT/Core land as this is a duplicate of a JDT/Core bug + Reopen to assign it to JDT/Core inbox...
*** This bug has been marked as a duplicate of 77398 ***
Verified for 3.1 M4 using build I200412142000.