Bug 97860 - [1.5][assist] All current proposals while completing after a type parameter results in a compiler error
Summary: [1.5][assist] All current proposals while completing after a type parameter r...
Status: CLOSED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 RC2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-01 10:52 EDT by Frederic Fusier CLA
Modified: 2005-06-10 12:19 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 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