Bug 45865 - References to method without argument are not found in Javadoc comment
Summary: References to method without argument are not found in 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 M5   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-31 10:50 EST by Frederic Fusier CLA
Modified: 2003-11-21 07:15 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-10-31 10:50:36 EST
Suppose we have following classes in the same package:
public class A{
	int f;
	public void m() {}
	public void m(String str) {}
}
public class B{
	/**
	 * @see A
	 * @see A#f
	 * @see A#m()
	 * @see A#m(String)
	 */
	void valid() {}
	
}

Search find references in B to type A, field f or method m(String) but not to 
method m().
Comment 1 Frederic Fusier CLA 2003-10-31 11:31:04 EST
Method reference was not accepted when method arguments field was null in 
SourceElementParser.checkAnnotation()!

Fixed by accepting the reference even when method has no argument (argument 
count = 0 in this case)...

This bug has been found while implement test class JavaSearchAnnotationTests
=> no specific test cases added

Comment 2 David Audel CLA 2003-11-21 07:15:51 EST
Verified.