Bug 50784 - Javadoc bindings: No binding in {@link } and link disturbs other bindings
Summary: Javadoc bindings: No binding in {@link } and link disturbs other bindings
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 M7   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-28 13:29 EST by Martin Aeschlimann CLA
Modified: 2004-02-11 10:46 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-28 13:29:02 EST
20040128

In the first code (a) 'Exception' in the Javdoc has a binding.
If you add the {@link Exception} as first line (b), neither the 'Exception' in
link nor the one in the see have one.
If you add it after the see (c), then it they have it both

(a)
public class AA {
	/**
	 * @see Exception
	 */
	public void foo() {
	}
}
(b)
public class AA {
	/**
         * {@link Exception}
	 * @see Exception
	 */
	public void foo() {
	}
}

(c)
public class AA {
	/**
	 * @see Exception {@link Exception}
	 */
	public void foo() {
	}
}
Comment 1 Frederic Fusier CLA 2004-01-28 19:26:51 EST
Fixed.

Problem comes from the fact that first javadoc text was an inline tag.
Change AbstractCommentParser.parse(int,int): verify that text start and end 
positions are correct before pushing text in stack...

Test case added in jdt.core.tests.dom.ASTConverterJavadocTest

Comment 2 Frederic Fusier CLA 2004-01-28 19:27:32 EST
Martin, I cannot send a jdtcore.jar patch from home as Notes server is down, 
but I've versionned this fix in HEAD stream, tag: v_400a

Comment 3 David Audel CLA 2004-02-11 10:46:54 EST
Verified for 3.0M7