Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 168161 - "Unused import" failed to include classes only appear in comment.
Summary: "Unused import" failed to include classes only appear in comment.
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-15 02:33 EST by Jerry Mising name CLA
Modified: 2006-12-22 04:09 EST (History)
0 users

See Also:


Attachments
Step 1 (7.76 KB, image/gif)
2006-12-15 02:34 EST, Jerry Mising name CLA
no flags Details
Step 2 (8.03 KB, image/gif)
2006-12-15 02:35 EST, Jerry Mising name CLA
no flags Details
Step 3 (7.80 KB, image/gif)
2006-12-15 02:37 EST, Jerry Mising name CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jerry Mising name CLA 2006-12-15 02:33:48 EST
Build ID: I20061102-1715

Steps To Reproduce:
Create a new class and follow the attached images.

More information:
Classes in comment don't required to be import.
So if some class only appear in comment, it should be listed in "Unused import".
Comment 1 Jerry Mising name CLA 2006-12-15 02:34:51 EST
Created attachment 55743 [details]
Step 1
Comment 2 Jerry Mising name CLA 2006-12-15 02:35:10 EST
Created attachment 55744 [details]
Step 2
Comment 3 Jerry Mising name CLA 2006-12-15 02:37:04 EST
Created attachment 55745 [details]
Step 3

Just to prove the import of IOException is useless.
Comment 4 Martin Aeschlimann CLA 2006-12-19 10:49:05 EST
The import of IOExeception is not useless, it is required to correctly generate Javadoc. Configure Java > Compiler > Javadoc > Malfomed Javadoc comments to see warnings for Javadoc as well.

If you don't like that either don't use Javadoc comments or turn processing Javadoc off (not recommended)
Comment 5 Jerry Mising name CLA 2006-12-19 20:28:39 EST
Then it's better to mark the "IOException" in comment in Step 3.

BTW, the status of Java > Compiler > Javadoc > Malfomed Javadoc comments is "ignore" by default.
Comment 6 Martin Aeschlimann CLA 2006-12-22 04:09:22 EST
Yes, you have to set it to Warning. I agree that it would be better to have 'Warning' as default. I filed bug 168925 for this.

Setting this bug to invalid.