Bug 167520

Summary: [quick fix] Provide quick fixes for annotations with invalid target
Product: [Eclipse Project] JDT Reporter: Brock Janiczak <brockj>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Brock Janiczak CLA 2006-12-11 20:37:38 EST
Version: 3.3.0
Build id: I20061102-1715

There is a compile error in the given snippet on the @Override annotation, but no quick fix for it.

@Override
public class Foo {}

It would be nice if there were at least a quick fix to remove the annotation.  Another fix might be to add the target type to the @interface definition.  ie. change it to:

@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.SOURCE)
public @interface Override {
}