aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2005-12-21 09:20:01 +0000
committeraclement <aclement>2005-12-21 09:20:01 +0000
commit930c1d3b842f3bccbc6d434907608bdc5d04a63f (patch)
treee1d00ccd0cfdc121e17c75bdde322d3265bd30ca /org.aspectj.ajdt.core
parentd21b27a4ec70fe7dbb4b38a42ff6015ec4cde16f (diff)
downloadaspectj-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.java9
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);
}