Bug 149096 - NoSuchFieldError when using cflow with XML concrete aspect
Summary: NoSuchFieldError when using cflow with XML concrete aspect
Status: RESOLVED DUPLICATE of bug 132080
Alias: None
Product: AspectJ
Classification: Tools
Component: LTWeaving (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 major (vote)
Target Milestone: 1.5.3   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-28 19:27 EDT by Steve Park CLA
Modified: 2006-09-25 07:45 EDT (History)
1 user (show)

See Also:


Attachments
Test case containing simple code that duplicates the bug (1.23 KB, application/octet-stream)
2006-06-28 19:29 EDT, Steve Park CLA
no flags Details
Patch to the junit test cases adding the test case for the bug (4.37 KB, patch)
2006-06-30 13:10 EDT, Steve Park CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Park CLA 2006-06-28 19:27:39 EDT
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.
Comment 1 Steve Park CLA 2006-06-28 19:29:50 EDT
Created attachment 45512 [details]
Test case containing simple code that duplicates the bug

Attaching simple source code that demonstrates the bug
Comment 2 Steve Park CLA 2006-06-30 13:10:01 EDT
Created attachment 45606 [details]
Patch to the junit test cases adding the test case for the bug
Comment 3 Andrew Clement CLA 2006-07-03 10:57:22 EDT
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...)
Comment 4 Ron Bodkin CLA 2006-07-03 13:24:35 EDT
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.
Comment 5 Andrew Clement CLA 2006-07-03 14:35:33 EDT
i agree
Comment 6 Matthew Webster CLA 2006-09-25 06:22:34 EDT
Marking as duplicate give the solution, if it works, will be the same.

*** This bug has been marked as a duplicate of 132080 ***