Bug 6421 - Organize imports tries to add imports for inner classes
Summary: Organize imports tries to add imports for inner classes
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows NT
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-29 09:40 EST by Joerg Henne CLA
Modified: 2001-12-18 04:50 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 Joerg Henne CLA 2001-11-29 09:40:51 EST
Organize imports tries to generate imports for inner classes. This is
obviuosly bound to fail.

How to reproduce:

1. create a class "Foo" in the default package with the following content:

public class Foo {
	private class Bar {
	}
	private void test() {
		new Bar();
	}
}

2. "Organzze imports"

3. The following broken import is added:

import .Foo.Bar;

---
I really hope that his is not a duplicate, but although there are quite a lot of 
bugs concerning "organize imports" I could not find a bug describing this 
behavior.
Comment 1 Martin Aeschlimann CLA 2001-12-18 04:50:21 EST
fixed in 11211