diff options
author | aclement <aclement> | 2005-12-21 09:20:01 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-12-21 09:20:01 +0000 |
commit | 930c1d3b842f3bccbc6d434907608bdc5d04a63f (patch) | |
tree | e1d00ccd0cfdc121e17c75bdde322d3265bd30ca /org.aspectj.ajdt.core | |
parent | d21b27a4ec70fe7dbb4b38a42ff6015ec4cde16f (diff) | |
download | aspectj-930c1d3b842f3bccbc6d434907608bdc5d04a63f.tar.gz aspectj-930c1d3b842f3bccbc6d434907608bdc5d04a63f.zip |
ajdoc: fixes from Helen for 119453
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java | 9 |
1 files changed, 8 insertions, 1 deletions
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 b46866d0f..a749205ee 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 @@ -402,7 +402,14 @@ public class AsmHierarchyBuilder extends ASTVisitor { addUsesPointcutRelationsForNode(peNode, namedPointcuts, methodDeclaration); if (methodDeclaration.returnType!=null) { - peNode.setCorrespondingType(methodDeclaration.returnType.toString()); + // if we don't make the distinction between ITD fields and other + // methods, then we loose the type, for example int, for the field + // and instead get "void". + if (peNode.getKind().equals(IProgramElement.Kind.INTER_TYPE_FIELD)) { + peNode.setCorrespondingType(methodDeclaration.returnType.toString()); + } else { + peNode.setCorrespondingType(methodDeclaration.returnType.resolvedType.debugName()); + } } else { peNode.setCorrespondingType(null); } |