Bug 105689

Summary: Code Completion on Annotations
Product: [Eclipse Project] JDT Reporter: Adam Greene <ccm682>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: david_audel, jerome_lanneluc
Version: 3.1   
Target Milestone: 3.4 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Adam Greene CLA 2005-08-01 13:18:16 EDT
When I upgraded to Eclipse 3.1, code completion on annotations stopped working 
correctly.  Example (| = cursor position):

Given:

@Table(|)

When I press Ctrl+Space, nothing happens (that is no drop down with listing 
all possible suggestions).  But if I put in:

@Table(n|)

Then it will suggest "name".

Also, when dealing with certain Annotations marked as:
@Target(
{ ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented

and placed on a method called:
@InjectObject(|)
public UserDAO getUserDAO() { return null; }

It tells me "InjectObject must define the attribute value", which is correct, 
but that is all it will do when I press Ctrl+Space, it won't suggest "value".  
But then when I do this:

@InjectObject(v|) it does not suggest "value" and simply lists all object 
beginning with V.
Comment 1 Frederic Fusier CLA 2005-08-02 05:04:14 EDT
Sounds like a duplicate of bug 87565

*** This bug has been marked as a duplicate of 87565 ***
Comment 2 Jerome Lanneluc CLA 2008-04-28 07:09:44 EDT
Verified for 3.4M7 using I20080427-2000