Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 275918 - Java import sort oder wrong for Enclosed classes.
Summary: Java import sort oder wrong for Enclosed classes.
Status: RESOLVED DUPLICATE of bug 194358
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-12 13:30 EDT by Nick Chalko CLA
Modified: 2009-05-12 13:32 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Chalko CLA 2009-05-12 13:30:09 EDT
Build ID: M20090211-1700

Steps To Reproduce:
1.  Given this class with a correctly sorted import list.

package com.example;

import java.awt.image.DataBuffer;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;


public class BadImportOrder {
  private DataBuffer db;
  private Entry<?, ?> entry;
  private Map<?, ?> map;
  private Set<?> set;
}

2. "Organize Imports"
3.  Yields

package com.example;

import java.awt.image.DataBuffer;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;


public class BadImportOrder {
  private DataBuffer db;
  private Entry<?, ?> entry;
  private Map<?, ?> map;
  private Set<?> set;
}




More information:
Enclosed classes are incorrectly sorted.

I confirmed this on linux and mac.  This keeps me from using the auto-organize on save feature.
Comment 1 Nick Chalko CLA 2009-05-12 13:32:29 EDT
Sorry just now found a exiting bug for this.  194358

*** This bug has been marked as a duplicate of bug 194358 ***