From: aclement Date: Wed, 11 Jun 2008 17:24:45 +0000 (+0000) Subject: 164340: ajdoc fix and test X-Git-Tag: V1_6_1rc1~68 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7ceeb0b26a83c56bee579aed4e42b458f1f3469c;p=aspectj.git 164340: ajdoc fix and test --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java index 4385e2a99..c1e7eb847 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java @@ -678,7 +678,9 @@ public class AsmHierarchyBuilder extends ASTVisitor { startIndex = ((FieldDeclaration)astNode).declarationSourceStart; } else if (astNode instanceof TypeDeclaration) { startIndex = ((TypeDeclaration)astNode).declarationSourceStart; - } + } else if (astNode instanceof ConstructorDeclaration) { + startIndex = ((ConstructorDeclaration)astNode).declarationSourceStart; + } if (startIndex == -1) { return null; @@ -795,6 +797,7 @@ public class AsmHierarchyBuilder extends ASTVisitor { formatter.setParameters(constructorDeclaration, peNode); peNode.setModifiers(constructorDeclaration.modifiers); peNode.setSourceSignature(genSourceSignature(constructorDeclaration)); + peNode.setFormalComment(generateJavadocComment(constructorDeclaration)); // Fix to enable us to anchor things from ctor nodes if (constructorDeclaration.binding != null) {