Community
Participate
Working Groups
When attempting to perform load time weaving of a concrete aspect defined in an aop.xml file, I get the following stack trace: Exception in thread "main" java.lang.NoSuchFieldError: ajc$cflowCounter$0 at TestMain.main(TestMain.aj:8) The concrete aspect extends an abstract aspect that defines a cflow pointcut.
Created attachment 45512 [details] Test case containing simple code that duplicates the bug Attaching simple source code that demonstrates the bug
Created attachment 45606 [details] Patch to the junit test cases adding the test case for the bug
I think this is the same as bug 132080. It occurs because LTW concrete-aspect definitions are not exposed to the weaver. If they aren't exposed, they don't get the necessary cflow field. (there are no doubt a large family of errors in this area...)
It makes sense that this would be the same bug as 132080, although I suspect that not supporting advising cflow pointcuts in concrete aspects is a more serious limitation for many users than other forms of not weaving concrete aspects.
i agree
Marking as duplicate give the solution, if it works, will be the same. *** This bug has been marked as a duplicate of 132080 ***