Bug 78716 - [1.5][enum] Organize imports removes static enum import
Summary: [1.5][enum] Organize imports removes static enum import
Status: VERIFIED DUPLICATE of bug 77398
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.1 M4   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-16 07:27 EST by James Ots CLA
Modified: 2004-12-15 11:33 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.