Bug 120522 - [assist] No proposal in @Target annotation attributes
Summary: [assist] No proposal in @Target annotation attributes
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M4   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-13 03:27 EST by Philipe Mulet CLA
Modified: 2005-12-14 04:37 EST (History)
0 users

See Also:


Attachments
Proposed patch (3.61 KB, patch)
2005-12-13 05:34 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 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