summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2008-11-28 20:44:34 +0000
committeraclement <aclement>2008-11-28 20:44:34 +0000
commit7cc89195decaf1f2b862f24872ee387973e76cac (patch)
treecd1b3809b47c7c497a2dcf2b2298fb0f11acab00
parentae5ed056a7c9424f10bf03187cfc1fb6c80db62a (diff)
downloadaspectj-7cc89195decaf1f2b862f24872ee387973e76cac.tar.gz
aspectj-7cc89195decaf1f2b862f24872ee387973e76cac.zip
256937: test and fix
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java2
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java
index da61dfa0b..c1ca366a6 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java
@@ -187,7 +187,7 @@ public class AsmElementFormatter {
node.setKind(IProgramElement.Kind.ERROR);
node.setName(name);
}
- node.setCorrespondingType(itd.returnType.toString());
+ node.setCorrespondingType(new String(itd.returnType.resolvedType.readableName()));
if (node.getKind() != IProgramElement.Kind.INTER_TYPE_FIELD) {
setParameters(methodDeclaration, node);
}
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 fc03e4923..2f7e6e074 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
@@ -508,7 +508,7 @@ public class AsmHierarchyBuilder extends ASTVisitor {
peNode.setCorrespondingType(methodDeclaration.returnType.toString());
} else {
if (methodDeclaration.returnType.resolvedType != null)
- peNode.setCorrespondingType(methodDeclaration.returnType.resolvedType.debugName());
+ peNode.setCorrespondingType(new String(methodDeclaration.returnType.resolvedType.readableName()));
else
peNode.setCorrespondingType(null);
}