Bug 63044 - Reference to a constructor inside a javadoc should point to a type binding and not a constructor binding
Summary: Reference to a constructor inside a javadoc should point to a type binding an...
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 RC1   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-19 13:55 EDT by Olivier Thomann CLA
Modified: 2004-05-28 15:10 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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