This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 55715 - [41cat] Fix Import not correctly working for @interface
Summary: [41cat] Fix Import not correctly working for @interface
Status: RESOLVED DUPLICATE of bug 55646
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows 95/98
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-01 16:55 UTC by vbrabant
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vbrabant 2005-03-01 16:55:22 UTC
[ BUILD # : 200502222100 ]
[ JDK VERSION : 1.5.0 ]

I created a @interface called NewAnnotation:


@Target(ElementType.CONSTRUCTOR)
public @interface NewAnnotation {
}

I right-click and select Fix Import.
NetBeans will add the statement import
java.lang.annotation.Target;
But it will never add the statement import
java.lang.annotation.ElementType

but, if I select the ElementType and press
Alt-Shift-i, NetBeans propose to add the statement
import java.lang.annotation.ElementType

Seems like a bug

Vincent
Comment 1 Daniel Prusa 2005-03-01 16:57:47 UTC

*** This issue has been marked as a duplicate of 55646 ***