Community
Participate
Working Groups
20040129 In the following code, 'Map' in the Javadoc comment has no binding. Also HashMap in '#HashMap' has no binding package x; import java.util.HashMap; import java.util.Map; import java.util.Vector; public class AA { /** * @see HashMap#HashMap(Map) */ public void foo(Vector v, Vector vd) { Map map; } }
It has not only to do with constructors: In this code 'Map' also has no binding. ('putAll' has it) package x; import java.util.HashMap; import java.util.Map; import java.util.Vector; public class AA { /** * @see HashMap#putAll(Map) */ public void foo(Vector v, Vector vd) { } }
Fixed. Parameters were forgot during conversion (and also during tests)... Changes made in: - ASTConverter.convert(Javadoc), - DefaultBindingResolver.resolveName(Name) to take into account that name can refers to an AllocationExpression, - JavadocArgumentExpression to store binding in its argument as this is this one which is used while resolving binding. - compiler.ast.Javadoc.getNodeStartingAt(int) to look starting positions for arguments - JavadocParser.createArgumentReference(...) as starting position was wrongly computed Test cases added in jdt.core.tests.dom.ASTConverterJavadocTest
Verified for 3.0M7