| Summary: | IFile added to list of imports but is not required | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Lawrence Mandel <lmandel> |
| Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
| Status: | CLOSED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | martinae |
| Version: | 3.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Lawrence Mandel
This was found on 3.2M5a, although I've seen the problem on older drivers. When I do this I get the new import, but it is not marked as unnecessary. It is in fact used in a @see tag of a Javadoc comment. When I remove the import again, I get a 'unknown' type warning on 'IFile' What are your settings on the 'Java > Compiler > Javadoc' preference page? Moving to jdt.core as it seems a wrongly reported unnecessary import. You need to pass the -enableJavadoc option in a batch compile. In your environment you are processing comments in order to resolve references, this is why the import is added. In your batch compile, you don't trigger the javadoc processing and this is why the import is reported as unused. Use a compilearg nested element in your javac ant task to fix this. Closing as INVALID. Please reopen if you do have the -enableJavadoc option set. Thanks for clearing up the misunderstanding. I've cleaned up the comment and will take a look at my workspace settings. |