Bug 139460 - [quick fix] Quickfix for adding static import
Summary: [quick fix] Quickfix for adding static import
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 536235 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-30 16:41 EDT by Gunnar Wagenknecht CLA
Modified: 2018-06-25 09:03 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***