Bug 279096 - Organize Imports adds imports for types referenced in Javadoc
Summary: Organize Imports adds imports for types referenced in Javadoc
Status: RESOLVED DUPLICATE of bug 128661
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.4.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-04 09:23 EDT by Daniel CLA
Modified: 2009-06-04 09:34 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel CLA 2009-06-04 09:23:54 EDT
Build ID: M20090211-1700

Steps To Reproduce:
Given the following code:

X.java:

package x;

public class X {
}

Y.java:

package y;

public class Y {
    /**
     * @see func2(X)
     */
    void func1() {
    }

    void func2(Y y) {
    }
}

In Y.java, do an "Organize Imports", and it will add an import for class X, even though it is not referenced anywhere except the Javadoc.

(Granted, the Javadoc is incorrect, but it should still not add the import.)

More information:
This bug is very closely related to bug #128661, but I'm not sure if it's a real duplicate.
Comment 1 Dani Megert CLA 2009-06-04 09:34:31 EDT

*** This bug has been marked as a duplicate of bug 128661 ***