From: aclement Date: Fri, 28 Nov 2008 20:44:34 +0000 (+0000) Subject: 256937: test and fix X-Git-Tag: V1_6_3rc1~86 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7cc89195decaf1f2b862f24872ee387973e76cac;p=aspectj.git 256937: test and fix --- 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); }