From 7716a15cbe03d6bd518ac013c4d9ffd7b9f05a3f Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Thu, 1 Aug 2013 09:54:14 -0700 Subject: improving ITIT support --- .../ajdt/internal/compiler/ast/IntertypeMemberClassDeclaration.java | 3 ++- .../src/org/aspectj/ajdt/internal/core/builder/AjState.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'org.aspectj.ajdt.core') diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/IntertypeMemberClassDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/IntertypeMemberClassDeclaration.java index b920ce0da..6b079949d 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/IntertypeMemberClassDeclaration.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/IntertypeMemberClassDeclaration.java @@ -18,6 +18,7 @@ import org.aspectj.ajdt.internal.compiler.lookup.EclipseFactory; import org.aspectj.ajdt.internal.compiler.lookup.EclipseSourceLocation; import org.aspectj.ajdt.internal.compiler.lookup.EclipseTypeMunger; import org.aspectj.ajdt.internal.compiler.lookup.InterTypeScope; +import org.aspectj.org.eclipse.jdt.core.compiler.CharOperation; import org.aspectj.org.eclipse.jdt.internal.compiler.ClassFile; import org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult; import org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration; @@ -272,6 +273,6 @@ public class IntertypeMemberClassDeclaration extends TypeDeclaration { } public char[] alternativeName() { - return onType.getLastToken(); + return CharOperation.concatWith(onType.getTypeName(),'.');//onType.getLastToken(); } } diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java index e324e2571..88b81ebc1 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java @@ -2204,7 +2204,8 @@ public class AjState implements CompilerConfigurationChangeFlags, TypeDelegateRe ClassParser parser = new ClassParser(f.toString()); return world.buildBcelDelegate(referenceType, parser.parse(), true, false); } catch (IOException e) { - IMessage msg = new Message("Failed to recover " + referenceType, referenceType.getSourceLocation(), false); + IMessage msg = new Message("Failed to recover " + referenceType, + referenceType.getDelegate()==null?null:referenceType.getSourceLocation(), false); buildManager.handler.handleMessage(msg); } return null; -- cgit v1.2.3