Bug 47968 - Cannot find @see references in Class javadoc comment
Summary: Cannot find @see references in Class javadoc comment
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-03 06:29 EST by Frederic Fusier CLA
Modified: 2003-12-16 10:43 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 Frederic Fusier CLA 2003-12-03 06:29:46 EST
Let consider following sample:
public class X {
	public int x;
	public X(String str) {}
	public void foo(int x) {}
}
/**
 * @see X#x
 * @see X#X(String)
 * @see X#foo(int)
 */
public class Y {
	/**
	 * @see X#x
	 * @see X#X(String)
	 * @see X#foo(int)
	 */
	public int y;
	/**
	 * @see X#x
	 * @see X#X(String)
	 * @see X#foo(int)
	 */
	public void bar() {}
}

Now search references in project for field x, constructor X(String) or method 
foo(int)... In each search, I get 2 matches: one in javadoc comment of field y 
and one in javadoc comment of method bar(), but never in javadoc comment of 
class Y.
Comment 1 Frederic Fusier CLA 2003-12-03 09:53:04 EST
Was found using build I20031126.

Due to MatchLocator while reportMatching on TypeDeclaration. We need now to 
scan from declarationSourceStart to sourceStart to include the possible javadoc 
comment...
Comment 2 Frederic Fusier CLA 2003-12-03 13:30:27 EST
Fixed.

While report matching on type declaration, scan is now also done from the 
declaration source start to source start to include possible javadoc comment 
and report eventual match in it...

Test cases added in jdt.core.tests.model.JavaSearchJavadocTests
Comment 3 David Audel CLA 2003-12-16 10:43:05 EST
Verified for 3.0M6