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 132645 - Non-annotations offered as imports for annotation usage
Summary: Non-annotations offered as imports for annotation usage
Status: RESOLVED DUPLICATE of bug 74717
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-11 18:02 UTC by Jesse Glick
Modified: 2008-04-25 12:47 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 Jesse Glick 2008-04-11 18:02:03 UTC
Put JUnit 4 in classpath.

class X {
  @Test void foo() {}
}

Try Fix Imports, or the corresponding hint. junit.framework.Test is offered as a choice (in fact the preferred choice),
even though it is not an annotation! Clearly the IDE should have known you meant org.junit.Test.
Comment 1 Jan Lahoda 2008-04-14 09:33:05 UTC

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