Bug 24276 - javadoc - Imports marked as unused when they are really necessary.
Summary: javadoc - Imports marked as unused when they are really necessary.
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M3   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-01 13:13 EDT by humphreys CLA
Modified: 2002-11-13 03:53 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description humphreys CLA 2002-10-01 13:13:15 EDT
Sometimes imports are necessary only for the purpose of creating javadoc links 
via the @link/@see tags, even though the imported class(es) are not referenced 
in the code itself. However, the eclipse compiler option will mark such imports 
are unneeded. They are not needed by the Java compiler but ARE needed by the 
javadoc compiler.
Comment 1 Philipe Mulet CLA 2002-10-02 05:16:05 EDT
The Java compiler doesn't introspect Javadoc (except for looking for 
@deprecated tags). 

I would rather wonder why javadoc compiler relies on extra imports. Such extra 
imports should rather be located in a javadoc itself rather than polluting the 
real source code.
Comment 2 Philipe Mulet CLA 2002-11-06 02:20:39 EST
Ok to close?
Comment 3 humphreys CLA 2002-11-06 10:45:20 EST
A workaround is to fully qualify the class in the Javadoc comment. This way 
there is no need to import the class.
Comment 4 Philipe Mulet CLA 2002-11-13 03:51:57 EST
Exactly, closing.
Comment 5 Philipe Mulet CLA 2002-11-13 03:52:19 EST
Forgot to assign
Comment 6 Philipe Mulet CLA 2002-11-13 03:52:46 EST
Closing
Comment 7 Philipe Mulet CLA 2002-11-13 03:53:16 EST
Again
Comment 8 Philipe Mulet CLA 2002-11-13 03:53:51 EST
Closing