From e91fcabde7a38787ac03b5f98c6588aa8b3e411c Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Thu, 30 Oct 2014 14:33:12 -0700 Subject: Fix 449401: thisAspectInstance compile problem with -1.8 --- .../org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'org.aspectj.ajdt.core') diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java index f9b26b59a..88556fccf 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java @@ -513,10 +513,12 @@ public class AjProblemReporter extends ProblemReporter { private final static char[] thisJoinPointName = "thisJoinPoint".toCharArray(); private final static char[] thisJoinPointStaticPartName = "thisJoinPointStaticPart".toCharArray(); private final static char[] thisEnclosingJoinPointStaticPartName = "thisEnclosingJoinPointStaticPart".toCharArray(); + private final static char[] thisAspectInstanceName = "thisAspectInstance".toCharArray(); public void uninitializedLocalVariable(LocalVariableBinding binding, ASTNode location) { if (CharOperation.equals(binding.name, thisJoinPointName) || CharOperation.equals(binding.name, thisJoinPointStaticPartName) || + CharOperation.equals(binding.name, thisAspectInstanceName) || CharOperation.equals(binding.name, thisEnclosingJoinPointStaticPartName)) { // If in advice, this is not a problem if (binding.declaringScope!=null && (binding.declaringScope.referenceContext() instanceof AdviceDeclaration || -- cgit v1.2.3