Bug 87869 - [1.5][generics][javadoc] Another dodgy insertion
Summary: [1.5][generics][javadoc] Another dodgy insertion
Status: RESOLVED DUPLICATE of bug 87868
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-13 00:44 EST by R Lenard CLA
Modified: 2005-03-14 13:29 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description R Lenard CLA 2005-03-13 00:44:33 EST
While writing javadoc I auto-selected the method, but the inserted reference 
generates an error - surely it shouldn't (either the insertion is wrong or the 
parsing of javadoc is broken).
% cat Test.java
/**
 * Comment
 */
public final class Test
{
    /**
     * Do something with the ip.
     * 
     * @param <T> the type this is for
     * @param ip the ip.
     */
    public <T> void myMethod(Iterable<? extends T> ip) {
        assert ip != null;
    }
    
    // The next line contains the problem.
    /** Test {@link Test#myMethod(Iterable<? extends T>) myMethod}. */
    public void fooey() {
        
    }

    /** Test {@link Test#myMethod(Iterable) myMethod}. */
    public void bluey() {
        
    }
}
Comment 1 Frederic Fusier CLA 2005-03-13 13:09:31 EST
Javadoc 1.5 spec does not allow generic in references. Syntax for @see or @link
references hasn't changed since 1.4, user has to use raw types to refer to types
or methods...

Note that javadoc.exe also reports error on this reference:
D:\usr\OTI\workspaces\tests\bugs\Divers15\b87869\Test.java:17: warning - Tag
@link:illegal character: "60" in "Test#myMethod(Iterable<? extends T>) myMethod"
D:\usr\OTI\workspaces\tests\bugs\Divers15\b87869\Test.java:17: warning - Tag
@link:illegal character: "63" in "Test#myMethod(Iterable<? extends T>) myMethod"
D:\usr\OTI\workspaces\tests\bugs\Divers15\b87869\Test.java:17: warning - Tag
@link:illegal character: "62" in "Test#myMethod(Iterable<? extends T>) myMethod"

Move to JDT/Text
Comment 2 Dani Megert CLA 2005-03-14 13:29:05 EST

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