Bug 78716

Summary: [1.5][enum] Organize imports removes static enum import
Product: [Eclipse Project] JDT Reporter: James Ots <eclipse_bugs>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M4   
Hardware: PC   
OS: Linux   
Whiteboard:

Description James Ots CLA 2004-11-16 07:27:12 EST
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.
Comment 1 Dirk Baeumer CLA 2004-11-16 08:47:47 EST
Martin, is this a dup of https://bugs.eclipse.org/bugs/show_bug.cgi?id=77398.

Comment 2 Martin Aeschlimann CLA 2004-11-16 11:35:03 EST
is a dup of bug 77398

added a test case ImportOrganizeTest.test_bug78716

*** This bug has been marked as a duplicate of 77398 ***
Comment 3 Frederic Fusier CLA 2004-12-15 11:28:49 EST
Back to JDT/Core land as this is a duplicate of a JDT/Core bug
+
Reopen to assign it to JDT/Core inbox...
Comment 4 Frederic Fusier CLA 2004-12-15 11:29:48 EST

*** This bug has been marked as a duplicate of 77398 ***
Comment 5 Frederic Fusier CLA 2004-12-15 11:33:59 EST
Verified for 3.1 M4 using build I200412142000.