Community
Participate
Working Groups
Hello, i just had some warnings when creating javadoc and wondered about the reasons. Then i saw, that eclipse gave me also wrong javadoc completions. The JavaDoc-API says: "Nested classes must be specified as outer.inner, not simply inner, for all forms." ( http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/javadoc.html#@see ) Example: public OtherClass extends OuterClass { /** * Wrong javadoc completion from Eclipse, that produces javadoc warnings: * * {@link #kick(InnerClass)} * * Correct code would be: * * {@link #kick(OuterClass.InnerClass)} * */ public OtherClass() { } public kick(InnerClass innerClass) { return; } } public class OuterClass { public OuterClass() { } protected static class InnerClass { public InnerClass() { } } } Thanks! Used version: Eclipse 3.0.1, Build id: 200409161125
filed bug 96237 against jdt.core so that we also warn about the usage of simple inner type names
*** Bug 78796 has been marked as a duplicate of this bug. ***
Moving all javadoc code assist bugs to jdt.core so they can be handled in the new jdt.core implementation.
Verified it works with 3.2 RC1. Note that example is not correct and produce compiler error and warnings. Error is due to missing class on OtherClass declaration. Warnings in Javadoc are due to missing return type for method kick... So, correct example is: public class OtherClass extends OuterClass { /** * Wrong javadoc completion from Eclipse, that produces javadoc warnings: * {@link #k<complete here 1> * * #k<complete here 2> */ public OtherClass() { } public void kick(InnerClass innerClass) { return; } } Completion correctly inserts: 1) kick(OuterClass.InnerClass) 2) {@link #kick(OuterClass.InnerClass)}