Bug 105689 - Code Completion on Annotations
Summary: Code Completion on Annotations
Status: VERIFIED DUPLICATE of bug 87565
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M7   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-01 13:18 EDT by Adam Greene CLA
Modified: 2008-04-28 07:09 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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