Bug 50877 - Javadoc AST Nodes: Wrong ranges
Summary: Javadoc AST Nodes: Wrong ranges
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.0 M7   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-29 12:05 EST by Martin Aeschlimann CLA
Modified: 2004-02-11 10:58 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:05:08 EST
20040129 preview from 5 p.m.

In the following code does the MethodRef '#gee(String)' have wrong ranges. The
range currently is 'gee(String' (missing '#' and missing ')')

(minor)

public class E {
    /**			
     * @see #gee(String)
     */
    public void gee(String name) {
    }
}
Comment 1 Frederic Fusier CLA 2004-01-29 18:20:53 EST
Fixed.

Only main DOM AST nodes: TagElement, TextElement, MemberRef, MethodRef and Name 
(considered as TypeRef) had their source range set.

I missed the fact that all sub-nodes (qualified names and simple names) should 
also have their source range set and their binding as well...

Test case added/fixed in jdt.core.tests.dom.ASTConverterJavadocTest
Comment 2 Frederic Fusier CLA 2004-01-30 05:14:20 EST
Also fix:
  - '#' not included
  - trailing ')' not included
  - for inline tags, trailing '}' not included
Comment 3 David Audel CLA 2004-02-11 10:58:14 EST
Verified for 3.0M7