Project: AspectJ
Bug 135068 VerifyError with LTW and @AJ style aspects
Reported: 2006-04-05 12:15:45 | Status: resolved fixed

I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 and SUN 1.5.0_06 and IBM 1.5.0SR1 JVMs. I will attach example project shortly.

Files changed in fix:
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java tests/bugs152/pr135068/A.java tests/bugs152/pr135068/Ajava.java tests/bugs152/pr135068/Ajava2.java tests/bugs152/pr135068/C.java tests/bugs152/pr135068/C2.java tests/bugs152/pr135068/t/Ajava.java tests/bugs152/pr135068/t/Ajava2.java tests/bugs152/pr135068/t/C.java tests/bugs152/pr135068/t/C2.java tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java