Bug 407082 - [1.8][quick fix] make annotation repeatable (JEP 120)
Summary: [1.8][quick fix] make annotation repeatable (JEP 120)
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.3   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: BETA J8   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 407864
Blocks:
  Show dependency tree
 
Reported: 2013-05-02 12:00 EDT by Markus Keller CLA
Modified: 2013-07-29 14:48 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 Markus Keller CLA 2013-05-02 12:00:07 EDT
Specifying the same annotation multiple times on the same element yields a compile error. With JEP 120, the annotation can be made @Repeatable.

The subject of this bug is to provide two quick fixes for such an error iff the repeated annotation is a source type:

1) Make '<annotation-name>' @Repeatable
- when the proposal is applied, we could also try to find an existing container annotation that meets all requirements

2) Make '<annotation-name>' @Repeatable and create container
- also creates an @interface with name '<annotation-name>Container' that implements all the boilerplate code.


We could also add a quick assist that "explodes" an existing container annotation and lists its elements directly.