Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338809

Summary: [quick fix] for bogus Javadoc errors (incorrect reference to nested type)
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: UIAssignee: Markus Keller <markus.kell.r>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.7   
Target Milestone: 3.7 M6   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Fix & tests none

Description Markus Keller CLA 2011-03-03 08:37:10 EST
HEAD, follow-up to bug 222188

Add quick fix to fully-qualify references to nested types (to work around implementation bugs in Javadoc.exe).


package pack2;

import pack.Test;
import pack.Test.Inner;

public class X {
//    Test t;
//    Inner i;
    
    /**
     * {@link pack.Test.Inner}.
     */
    public Object a;
    /**
     * {@link Test.Inner}.
     */
    public Object b;
    /**
     * {@link Inner}.
     */
    public Object c;
    /**
     * {@link pack.Test.Inner#foo()}.
     */
    public Object d;
    /**
     * {@link Test.Inner#foo()}.
     */
    public Object e;
    /**
     * {@link Inner#foo()}.
     */
    public Object f;
    /**
     * {@link pack.Test#bar(pack.Test.Inner)}.
     */
    public Object g;
    /**
     * {@link pack.Test#bar(Test.Inner)}}.
     */
    public Object h;
    /**
     * {@link pack.Test#bar(Inner)}}.
     */
    public Object i;
}

package pack;
public class Test {

    public interface Inner {
        void foo();
    }
    
    public void bar(Inner i) {
        
    }
}
Comment 1 Markus Keller CLA 2011-03-03 09:17:57 EST
Created attachment 190271 [details]
Fix & tests
Comment 2 Markus Keller CLA 2011-03-03 09:19:02 EST
Fixed in HEAD.
Comment 3 Markus Keller CLA 2011-03-03 09:19:15 EST
.