Bug 63044

Summary: Reference to a constructor inside a javadoc should point to a type binding and not a constructor binding
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Olivier Thomann CLA 2004-05-19 13:55:21 EDT
Reference to a name like this (second 'A')

A#A() inside a javadoc should return a type binding and not a constructor
binding. This would make it consistent with the fact that this name refers to a
type reference.
Comment 1 Frederic Fusier CLA 2004-05-19 15:25:33 EDT

*** This bug has been marked as a duplicate of 54948 ***
Comment 2 Frederic Fusier CLA 2004-05-23 11:32:42 EDT
Reopen as it is not a duplicate of bug 54948.

I mixed DOM AST nodes and Compiler AST nodes...
Comment 3 Frederic Fusier CLA 2004-05-24 11:19:40 EDT
Fixed.

Now, binding stored for constructor selector in Javadoc DOM AST node hierarchy
is a type binding instead of a method binding.

[jdt-core-internal]
Change done in class ASTConverter method
recordNodes(org.eclipse.jdt.internal.compiler.ast.Javadoc,TagElement).

No specific test cases added. Change has been done in verifyBindings(TagElement)
method of ASTConverterJavadocTests to verify that new behavior is correctly
implemented.
Comment 4 Frederic Fusier CLA 2004-05-24 11:20:51 EDT
Finally test case was added in ASTConverterJavadocTest.
Comment 5 Olivier Thomann CLA 2004-05-28 15:10:33 EDT
Verified in 200405281200