Bug 443986 - [1.5] Code complete of enclosed annotation class does not accept class-qualified name
Summary: [1.5] Code complete of enclosed annotation class does not accept class-qualif...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-12 14:37 EDT by Zorzella Mising name CLA
Modified: 2014-09-17 05:26 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 Zorzella Mising name CLA 2014-09-12 14:37:20 EDT
In the code below, I create an annotation class that is enclosed on another class. If I try to have eclipse auto-complete the annotation with the enclosing class prefix, it does not work:

public class AtEnclosedCompletionBug {

  @interface Foo {}
  
  // Note that this is valid -- i.e. qualifying the annotation class name with
  // the enclosing class
  @AtEnclosedCompletionBug.Foo String foobar;

  // Type @AtEnclosed <Ctrl-Space>. This should suggest (or auto-complete to)
  // @AtEnclosedCompletionBug.Foo but it doesn't
}
Comment 1 Noopur Gupta CLA 2014-09-17 04:51:25 EDT
Reproducible, we do not get any proposal here.
Not sure if this is supported or could be an enhancement.
Moving to JDT/Core for comments.
Comment 2 Jay Arthanareeswaran CLA 2014-09-17 05:26:48 EDT
I see this as far back as 3.8.2. So, I can conclude we never meant to support this.

Will consider if someone is willing to provide a patch.