[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Re: Privileged Blocks Issue : JBAOP-675

flavia.rainone@jboss.com do-not-reply at jboss.com
Thu Nov 20 15:42:31 EST 2008


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#4191037

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191037



More information about the jboss-dev-forums mailing list