Community
Participate
Working Groups
I20051213-0010 Follow steps from bug 114341. Observe: The resulting CU is: import Toto.Tata; public class X { /** * {@link Tata} */ void foo() {} } class Toto { class Tata {} } The import is wrong (not needed).
Note this is with 'Add import instead of fully qualified name' preference on.
This is a corner case. In 1.3 compliance this is allowed (and not unnecessary), in compliance > 1.3 imports from the default package are forbidden. Everything works if your type is in a package. I suggest to close as won't fix. Objections?
My compliance is 1.4. Why don't you check it ?
Currently it would mean extra code at each caller site of the import rewrite only gets the fully qualified name and can't know that this reference is in the default package. It's a bug but a corner case: Default package and secondary type.