From df309ad58ae97560a94b01f798845d9517cd5c86 Mon Sep 17 00:00:00 2001 From: jhugunin Date: Thu, 23 Oct 2003 16:47:24 +0000 Subject: fix for Bugzilla Bug 45441 IncompatibleClassChangeError at runtime when compiling with -1.4 option --- .../aspectj/ajdt/internal/compiler/ast/ThisJoinPointVisitor.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'org.aspectj.ajdt.core') 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); } -- cgit v1.2.3