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

Summary: Classes used in javadoc comments marked as "unused import"
Product: java Reporter: crosati <crosati>
Component: EditorAssignee: Jan Pokorsky <jpokorsky>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: msauer
Priority: P4    
Version: 6.x   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

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 ***