Bug 78151

Summary: 'Insert single proposals automatically' should not insert without prefix
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: martinae
Version: 3.0   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2004-11-09 05:07:55 EST
200410260800

- Have a new CU New.java:
    public class New extends /*caret*/ { }

- Press Ctrl+Space with the cursor at the indicated location.
=> Was: 'New' is inserted.
=> Expected: Proposal popup with single completion is shown, even if 'Insert
single proposals automatically' is checked.
Comment 1 Dani Megert CLA 2004-11-09 10:20:59 EST
It should not suggest New here.
Comment 2 Martin Aeschlimann CLA 2004-11-09 10:34:11 EST
+ 2 from me
The current behaviour is not consistent. Code assist should suggest either all 
types or no types. The current way of just showing known enclosing types leads 
to lots of strange completions where 99% are not wanted)
e.g. see bug 76674 comment 5 and following

Even better would be a flag to specify to get all types if we want (of course 
not for showing in the UI, but when code assist is used programmatically)
Comment 3 David Audel CLA 2005-01-19 10:46:44 EST
Fixed and test added
  CompletionTests#testCompletionInsideExtends1() ->
CompletionTests#testCompletionInsideExtends12()

Current type and members of this type must not be proposed after 'extends' or
'implements'.
Comment 4 Jerome Lanneluc CLA 2005-02-14 12:22:14 EST
Verified in I20050214