Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 23078 - import structure: incorrectly sorting imports on adding [code manipulation]
Summary: import structure: incorrectly sorting imports on adding [code manipulation]
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-02 05:53 EDT by Adam Kiezun CLA
Modified: 2003-05-06 05:15 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2002-09-02 05:53:55 EDT
i have a cu:

package p1;
import p.A.*;

now, i want to add an import 'p.Inner'
it gets incorrectly inserted before the p.A.* import
(i use ImportEdit::addImport)
Comment 1 Martin Aeschlimann CLA 2002-11-25 08:41:30 EST
fixed > 20021125

added Test: AddImportTest.testAddImports_bug23078
Comment 2 Adam Kiezun CLA 2003-04-30 06:17:00 EDT
not fixed 
the correct sequence is (alphabetically):

import p.A.*;
import p.Inner;

the current result is the reverse
(and the test is bogus)
Comment 3 Martin Aeschlimann CLA 2003-04-30 09:47:06 EDT
Note that the sorting depends on the 'package' name:
p.Inner: package name is p
p.A.*: package name is p.A

p < p.A
Comment 4 Adam Kiezun CLA 2003-05-06 05:15:30 EDT
p.A is a type name, no a package name