Summary: | ContentAssist should not show annotations that are not valid for the current location | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Philipp Kursawe <phil.kursawe> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | VERIFIED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | daniel_megert, david_audel, jerome_lanneluc |
Version: | 3.4 | ||
Target Milestone: | 3.4 M7 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Philipp Kursawe
2008-04-02 07:46:04 EDT
All annotations are proposed but annotations whose target is set to ElementType.METHOD are proposed first. ---------------------------- @Target(ElementType.TYPE) public @interface MyAnnot1 { } ---------------------------- Target(ElementType.METHOD) public @interface MyAnnot2 { } ---------------------------- public class Test { @MyAnnot| // do ctrl+space at | location public void foo() {} } ---------------------------- With this test case MyAnnot1 and MyAnnot2 are proposed but MyAnnot2 is at the top of the list of proposals. MyAnnot1 must not be filtered because perhaps the user want to type: public class Test { @MyAnnot1 class X {} public void foo() {} } I close this bug as INVALID because it works as designed. You are right David, I did not thought of this use-case. Well done! |