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 117748 - Classes used in javadoc comments marked as "unused import"
Summary: Classes used in javadoc comments marked as "unused import"
Status: RESOLVED DUPLICATE of bug 122484
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P4 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-04 10:56 UTC by crosati
Modified: 2008-03-27 15:41 UTC (History)
1 user (show)

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 crosati 2007-10-04 10:56:28 UTC
If I reference a class in a javadoc comment without the fully specified name and I put an explicit import of that class (in order to have javadoc working without 
error messages) in the editor I continue to see that import marked as "Unused Import".
Comment 1 Jiri Prox 2007-10-05 08:20:01 UTC
Which kind of reference? I don't know any reference type in javadoc which needs importing class.
Comment 2 crosati 2007-10-05 09:18:29 UTC
If you write this kind of comment:

/**
* The {@link JButton} ...
*/
public void someFuncion ()...

if java.swing.JButton is not imported then javadoc raises an error
but if I put the import NB suggest me to remove it because not used
Comment 3 Max Sauer 2007-10-11 12:31:58 UTC
Thanks for clarification. I think this is not a P3 Bug. This produces only a javadoc-compile warning, and disables the
link inside of the javadoc. Also, the linked class would be typically imported anyway..
Comment 4 Jan Pokorsky 2008-03-27 15:41:43 UTC
implemented

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