IncompatibleClassChangeError at runtime when compiling with -1.4 option
//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);
}
</compile>
</ajc-test>
+ <ajc-test dir="bugs/jpOptimization"
+ pr="45441"
+ title="JoinPoint Optimization when targetting 1.4">
+ <compile
+ files="de/test/MyMain.java,
+ de/test/MyAspect.java"
+ options="-1.4"/>
+ <run class="de.test.MyMain"/>
+ </ajc-test>
</suite>
files="Main.java"/>
<run class="Main"/>
</ajc-test>
-
- <ajc-test dir="bugs/jpOptimization"
- pr="45441"
- title="JoinPoint Optimization when targetting 1.4">
- <compile
- files="de/test/MyMain.java,
- de/test/MyAspect.java"
- options="-1.4"/>
- <run class="de.test.MyMain"/>
- </ajc-test>
+
</suite>