Bug 51770 - Javadoc AST Node: wrong binding on qualified name part
Summary: Javadoc AST Node: wrong binding on qualified name part
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: 3.0 M7   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-11 16:04 EST by Martin Aeschlimann CLA
Modified: 2004-02-12 15:43 EST (History)
1 user (show)

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-02-11 16:04:05 EST
20040211

In the following code in the 'see' tag, the SimpleName 'java' (part of the
qualified name 'java.util.Vector') has a ITypeBinding to 'java.util.Vector'.
Should only have a package binding.

package pack;

import java.util.Vector;

/**
 * @see java.util.Vector
 */
public interface IOpenable {
		
}

This bug is the cause for bug 51497. I'd be happy if you could fix this for M7
otherwise Orgamize import adds lots of unneeded imports.
Comment 1 Martin Aeschlimann CLA 2004-02-11 16:04:39 EST
*** Bug 51497 has been marked as a duplicate of this bug. ***
Comment 2 Frederic Fusier CLA 2004-02-12 09:46:15 EST
Fixed.

Now only qualified name 'java.util.Vector' and simple name 'Vector' are bound 
to ITypeBinding java.util.Vector. All other names (ie. 'java', 'util' 
and 'java.util') are bound to corresponding package binding.

[jdt-core-dev internal]
The index was not set for qualified name while recording nodes during javadoc 
AST convertion. Change made in recordName(Name, ASTNode) of ASTConverter.

Test case added in jdt.core.tests.model.ASTConverterJavadocTest
Comment 3 Olivier Thomann CLA 2004-02-12 15:43:45 EST
Verified in 200402121200.