aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2003-10-23 16:47:24 +0000
committerjhugunin <jhugunin>2003-10-23 16:47:24 +0000
commitdf309ad58ae97560a94b01f798845d9517cd5c86 (patch)
treeed8d7c69a5b940ea69dafb51cdf079e58f5b9e8f /org.aspectj.ajdt.core
parent0929f8ccff1b0e98dbc3168b7acfc4159a969b2b (diff)
downloadaspectj-df309ad58ae97560a94b01f798845d9517cd5c86.tar.gz
aspectj-df309ad58ae97560a94b01f798845d9517cd5c86.zip
fix for Bugzilla Bug 45441
IncompatibleClassChangeError at runtime when compiling with -1.4 option
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ThisJoinPointVisitor.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ThisJoinPointVisitor.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ThisJoinPointVisitor.java
index 2ec487518..8e5ef3837 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ThisJoinPointVisitor.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ThisJoinPointVisitor.java
@@ -161,6 +161,14 @@ public class ThisJoinPointVisitor extends AbstractSyntaxTreeVisitorAdapter {
//System.err.println("replace static ref: " + receiver + " is " + System.identityHashCode(receiver));
receiver.binding = thisJoinPointStaticPartDecLocal; //thisJoinPointStaticPartDec;
receiver.codegenBinding = thisJoinPointStaticPartDecLocal;
+
+ ReferenceBinding thisJoinPointStaticPartType =
+ (ReferenceBinding)thisJoinPointStaticPartDec.type;
+
+ receiver.receiverType = receiver.actualReceiverType =
+ receiver.resolvedType = thisJoinPointStaticPartType;
+
+ call.setActualReceiverType(thisJoinPointStaticPartType);
call.binding = call.codegenBinding = getEquivalentStaticBinding(call.binding);
}