Bug 50840 - Javadoc AST: wrong start position on MemberRef
Summary: Javadoc AST: wrong start position on MemberRef
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-29 06:22 EST by Martin Aeschlimann CLA
Modified: 2004-02-11 10:55 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 06:22:26 EST
20040129

In the following code, MethodRef 'HashMap#putAll(Map)' has start position 141, 
length 10, but it's child Name 'HashMap' has starting position 133 (length 7).

package x;

import java.util.HashMap;
import java.util.Map;
import java.util.Vector;


public class AA {
	
	/**
	 * @see HashMap#putAll(Map)
	 */
	public void foo(Vector v, Vector vd) {
		Map map;
	}
}
Comment 1 Frederic Fusier CLA 2004-01-29 11:31:57 EST
Fixed.

Member ref start position was incorrectly reset with method name start position 
in DocCommentParser.createMethodRef(Object, List)...

Some methods written in jdt.core.tests.dom ASTConverterJavadocTest need to be 
modified to verify that this bug won't happen again...
Comment 2 David Audel CLA 2004-02-11 10:55:09 EST
Verified for 3.0M7