aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authorAndy Clement <aclement@gopivotal.com>2013-08-01 09:54:14 -0700
committerAndy Clement <aclement@gopivotal.com>2013-08-01 09:54:14 -0700
commit7716a15cbe03d6bd518ac013c4d9ffd7b9f05a3f (patch)
tree986eca0bb39e84a0181322a89464363e4c876651 /org.aspectj.ajdt.core
parent3b8fac4dbc514eb2965a6271a0a833832fee9958 (diff)
downloadaspectj-7716a15cbe03d6bd518ac013c4d9ffd7b9f05a3f.tar.gz
aspectj-7716a15cbe03d6bd518ac013c4d9ffd7b9f05a3f.zip
improving ITIT support
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/IntertypeMemberClassDeclaration.java3
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java3
2 files changed, 4 insertions, 2 deletions
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;