Bug 43715

Summary: Option to ignore unused imports
Product: [Eclipse Project] JDT Reporter: Adrian Newby <anewby>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: RESOLVED INVALID QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M7   
Hardware: All   
OS: All   
Whiteboard:

Description Adrian Newby CLA 2003-09-25 19:53:42 EDT
When writing Javadoc, the programmer must sometimes import or otherwise
reference an external class if they want to be able to link to its Javadoc. 
e.g. if you want to write this in Javadoc

{@link com.sun.security.auth.module.Krb5LoginModule}

and have Javadoc generate a hyperlink, then you need to include something like
this in your source, even thouogh the declaration is unnecessary for correct
compilation:

import com.sun.security.auth.module.Krb5LoginModule;

The options presented by the Quick fixer in this case are : "Remove import" and
"Organize imports".  What is really needed here is an additional "Ignore"
option, since this problem is likely to increase with large, heavily-documented
projects.
Comment 1 Dirk Baeumer CLA 2003-09-26 06:08:24 EDT
The compiler will know about these references in the future. 

Moving to JDT/Core for comments
Comment 2 Frederic Fusier CLA 2003-12-15 12:19:23 EST
References are now seen in Javadoc for @throws and @see tags when Javadoc 
option is activated. So this would fix the problem for these tags...

For embedded tags as {@link...}, this would be done when bug 48385 will be 
fixed.
Comment 3 Frederic Fusier CLA 2004-01-13 05:18:52 EST
Fixed as bug 48385 is now fixed.
Comment 4 Frederic Fusier CLA 2004-01-13 05:20:52 EST
Reopen to resolve it as duplicate...
Comment 5 Frederic Fusier CLA 2004-01-13 05:21:13 EST

*** This bug has been marked as a duplicate of 48385 ***
Comment 6 Frederic Fusier CLA 2004-01-13 05:22:22 EST
Ooops, duplicate is not right => reopen
Comment 7 Frederic Fusier CLA 2004-01-13 05:23:19 EST
Finally, correct answer is invalid after bug 48385 is fixed...