]> source.dussan.org Git - aspectj.git/commitdiff
164340: ajdoc fix and test
authoraclement <aclement>
Wed, 11 Jun 2008 17:24:45 +0000 (17:24 +0000)
committeraclement <aclement>
Wed, 11 Jun 2008 17:24:45 +0000 (17:24 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java

index 4385e2a99cc9707355afeac6c2cf6b2967db4927..c1e7eb847f6bcd5a32b0011c5a324d9744aaea4c 100644 (file)
@@ -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) {