Bug 97860

Summary: [1.5][assist] All current proposals while completing after a type parameter results in a compiler error
Product: [Eclipse Project] JDT Reporter: Frederic Fusier <frederic_fusier>
Component: CoreAssignee: David Audel <david_audel>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 RC2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Frederic Fusier CLA 2005-06-01 10:52:56 EDT
Using 3.1 RC1.

Consider following simple snippet:
public class X<E> {
	Object x = E.|
}

While completing at "|", I get 2 proposals: "class" and "this".
If I chose "class", I get following compiler error:
"Illegal class literal for the type parameter E"
If I chose "this", I get:
"No enclosing instance of the type E  is accessible in scope"
Comment 1 Philipe Mulet CLA 2005-06-02 13:00:02 EDT
+1 for RC2
Comment 2 David Audel CLA 2005-06-02 13:20:55 EDT
Fixed and tests added
  CompletionTests_1_5#test0234() -> test0235()
Comment 3 Olivier Thomann CLA 2005-06-06 15:40:34 EDT
Verified using N20050606-0010 + JDT/Core HEAD
Comment 4 Jerome Lanneluc CLA 2005-06-10 12:19:47 EDT
Verified with I20050610-0010