Bug 407082

Summary: [1.8][quick fix] make annotation repeatable (JEP 120)
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, deepakazad
Version: 4.3   
Target Milestone: BETA J8   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 407864    
Bug Blocks:    

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.