The problem is in your aspect code:
| @Aspect
| public class MyAspect
| {
| @Mixin (target=MyPojo.class, interfaces={MyInf.class})
| public static MyMixin createMyMixin() {
| return new MyMixin();
| }
| }
|
The createMyMixin method must receive the pojo as an argument. Just replace your aspect by
this new one.
| @Aspect
| public class MyAspect
| {
| @Mixin (target=MyPojo.class, interfaces={MyInf.class})
| public static MyMixin createMyMixin(MyPojo pojo) {
| return new MyMixin();
| }
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990769#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...