Bug 207929 - No import added to declaring class if static member is 'class'
Summary: No import added to declaring class if static member is 'class'
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.4 M4   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-30 06:31 EDT by Benno Baumgartner CLA
Modified: 2007-12-11 05:21 EST (History)
3 users (show)

See Also:


Attachments
Proposed fix (5.52 KB, patch)
2007-11-05 11:01 EST, David Audel CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benno Baumgartner CLA 2007-10-30 06:31:59 EDT
I20071030-0010

Given:
package test1;
public class E1 {
	public void foo() {
		ArrayList.|
	}
}

1. Replace '|' with cursor
2. Ctrl-Space
3. select 'class'
Is:
 ArrayList is not imported
Should:
 Be imported
Comment 1 Dani Megert CLA 2007-10-31 12:06:25 EDT
This is a JDT Core bug: the required proposal is missing.
Comment 2 David Audel CLA 2007-11-05 11:01:38 EST
Created attachment 82100 [details]
Proposed fix
Comment 3 David Audel CLA 2007-11-05 11:04:59 EST
Released for 3.4M4.

Test added
   CompletionWithMissingTypesTests#test0038()
Comment 4 Eric Jodet CLA 2007-12-11 05:21:32 EST
Verified for 3.4 M4 using build I20071210-1800