Bug 120522

Summary: [assist] No proposal in @Target annotation attributes
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed patch none

Description Philipe Mulet CLA 2005-12-13 03:27:56 EST
M4 candidate

When completing in following code, ElementType isn't suggested.

import java.lang.annotation.Target;
@Target(ElementType| //<-- CODEASSIST HERE
public @interface ETree {
}
Comment 1 David Audel CLA 2005-12-13 05:34:10 EST
Created attachment 31626 [details]
Proposed patch

This is a bug in completion proposal filtering.

In this case if CompletionProposal.ANNOTATION_ATTRIBUTE_REF are filtered then CompletionProposal.TYPE_REF are not proposed.
Comment 2 David Audel CLA 2005-12-13 09:24:42 EST
Fixed and test added
  CompletionTests_1_5#test0264()
Comment 3 Frederic Fusier CLA 2005-12-14 04:37:14 EST
Verified for 3.2 M4 using build I20051214-0010