Bug 53075 - @link in Javadoc not parsed correctly
Summary: @link in Javadoc not parsed correctly
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M8   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-25 11:32 EST by Erwin Tratar CLA
Modified: 2004-03-25 10:23 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 Erwin Tratar CLA 2004-02-25 11:32:06 EST
The following javadoc is not parsed correctly:

class X {
/**
 * @link aggregates
 * [... some more ...]
 */
void foo();
}

The BodyDeclaration.getJavadoc().tags() contains as the first element a @see tag
with a SimpleName instead of the correct @link tag with a TextElement. I suppose
it gets interpreted as an inline {@link} tag when no "normal" comment is given
and the @link is the first tag. Comments like above are genereted by Together/J.
Comment 1 Frederic Fusier CLA 2004-03-05 13:51:51 EST
Fixed.

@link without opening brace before will be now consumed as a non-specific tag. 
We'll just store text after this tag in fragments children.

[jdt-core-internal]
Call parseTag() when "link" or "linkplain" identifiers are read and inline tag 
not started in parseComment(int,int) of AbstractCommentParser.

Test case added in jdt.core.tests.dom.ASTConverterJavadocTests
Comment 2 Jerome Lanneluc CLA 2004-03-25 10:23:11 EST
Verified in I200403250010