Bug 79904

Summary: [1.5][dom][javadoc] TagElement range not complete for type parameter tags
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jeem
Version: 3.1   
Target Milestone: 3.1 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Martin Aeschlimann CLA 2004-12-01 13:14:23 EST
20041201

In the following code is the node range of the TagElement not complete: It only
contains '@param <A'

/**
 * @param <A>
 */
class E<A> {
}
Comment 1 Jim des Rivieres CLA 2004-12-02 14:31:32 EST
Underlying this is the fact that J2SE 5 allows @parameter tag elements on 
class and interface declarations.  "@parameter <X>" should parse the same was 
as on method declarations.
Comment 2 Frederic Fusier CLA 2004-12-05 12:08:47 EST
DocCommentParser already parses @param <X> tags in class javadoc the same way it
does in method javadoc. So, the problem is the same in both cases...
Comment 3 Frederic Fusier CLA 2004-12-06 09:08:00 EST
Fixed.

Range now includes closing '>'.

|jdt-core-internal]
Changes done in AbstractCommentParser.parseParam().
Test case added: ASTConverterJavadocTests#testBug79904()
Comment 4 Olivier Thomann CLA 2004-12-14 11:58:38 EST
Verified in 200412140800