Bug 139460

Summary: [quick fix] Quickfix for adding static import
Product: [Eclipse Project] JDT Reporter: Gunnar Wagenknecht <gunnar>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: sarika.sinha
Version: 3.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Gunnar Wagenknecht CLA 2006-04-30 16:41:29 EDT
In the following enum an error is generated for the token "RUNTIME" because it cannot be resolved.

----
package enumeration;

import java.lang.annotation.Target;

@Target(RUNTIME)
public enum Enummerated {

}
----

It would be nice to have a quickfix which automatically adds a static import for "java.lang.annotation.RetentionPolicy.RUNTIME".

See bug 139459 for a similar request to content assist.
Comment 1 Ilja Preuss CLA 2006-09-12 04:05:03 EDT
bug 152123 proposes a more general solution to the problem.
Comment 2 Dani Megert CLA 2018-06-25 09:03:28 EDT
*** Bug 536235 has been marked as a duplicate of this bug. ***