Bug 50880 - JavadocAST Nodes: Wrong ranges on link
Summary: JavadocAST Nodes: Wrong ranges on link
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.0 M7   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 50881 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-29 12:21 EST by Martin Aeschlimann CLA
Modified: 2004-02-11 10:56 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 Martin Aeschlimann CLA 2004-01-29 12:21:03 EST
20040129 preview from 5 p.m.

In the following code the TagElement has ranges [-1, 0].

Would be nice to have this fixed for EC.

package x;


public class E {

	int val;
	
    /**			
     * {@link Vector#containsAll(Collection)}
     */
    public void gee(String name) {
    }
}
Comment 1 Martin Aeschlimann CLA 2004-01-29 12:23:03 EST
*** Bug 50881 has been marked as a duplicate of this bug. ***
Comment 2 Frederic Fusier CLA 2004-01-29 18:23:02 EST
Fixed.

When text or inline tag is encountered first in javadoc comment, a tag element 
with null tag name is "silently" created. Unfortunately, its source range was 
not set at the same time...

Changes made in DocCommentParser.pushText(int,int) and pushSeeRef(Object, 
boolean) methods.

Test case added in jdt.core.tests.dom.ASTConverterJavadocTest
Comment 3 Frederic Fusier CLA 2004-01-29 18:23:24 EST
Fixed.
Comment 4 David Audel CLA 2004-02-11 10:56:48 EST
Verified for 3.0M7