Bug 50694 - Javadoc: Cannot find DOM AST bindings for types in @see tags
Summary: Javadoc: Cannot find DOM AST bindings for types in @see tags
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M7   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 50692
  Show dependency tree
 
Reported: 2004-01-27 12:35 EST by Frederic Fusier CLA
Modified: 2004-02-11 09:57 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 Frederic Fusier CLA 2004-01-27 12:35:29 EST
Build I20040120 + jdtcore.jar of I20040127...

Let's have following javadoc comment:
/**
 * @see String Standard class for string
 */

Binding resolution fails (return null) on String which should be obviously 
bound!

Note that in following case
/**
 * @see X#x Instance variable of class X
 */
the binding is found
Comment 1 Frederic Fusier CLA 2004-01-27 12:49:02 EST
Problem comes from the loop while resolving entire javadoc in 
ASTConverter.convert(org.eclipse.jdt.internal.compiler.ast.Javadoc).
Types references are Name DOM AST nodes instead of MemberRef as initially 
designed. When kind of nodes were changed, the loop executed while javadoc 
resolved was not updated...
Comment 2 Frederic Fusier CLA 2004-01-28 04:47:52 EST
Fixed.

Now, when resolve bindings is active while converting Javadoc, we record nodes 
also for Name fragments.


Fix existing test case testJ00 of jdt.core.tests.dom.ASTConverterJavadocTest 
which should have had to detect this problem...
Comment 3 David Audel CLA 2004-02-11 09:57:33 EST
Verified for 3.0M7