I have to fix this inside AspectManager.
This is what is happening. JBoss AOP inserts an advisor field into the weaved class. This
field is static and is initialized with AspectManager.getAdvisor(this.getClass()):
public WeavedClass
| {
|
| private static final Advisor aop$advisor$aop =
AspectManager.instance().getAdvisor(this.getClass);
| ...
| }
|
So, I'm not sure if Javassist allows to edit clinit, and I can't edit the
aop$advisor$aop field initialization, replacing the call to getAdvisor by an if/else
field.
Plus, I need to know exactly what kind of permission it needs (why is the check failing on
line 707 exactly?), as this method is called elsewhere inside of JBoss AOP.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191037#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...