Community
Participate
Working Groups
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.
bug 152123 proposes a more general solution to the problem.
*** Bug 536235 has been marked as a duplicate of this bug. ***