[jboss-user] [JBoss AOP] - Re: Hotswapping an interceptor to an EJB

kabir.khan@jboss.com do-not-reply at jboss.com
Thu Nov 30 09:38:53 EST 2006


Hmm,

when weaving, we copy across the method

so 

  | class Blah{
  |   
  |   @Destroy 
  |   void someMethod(){
  |      //do stuff
  |   }
  | }
  | 

becomes

  | class Blah{
  |   @Destroy
  |   void someMethod(){
  |     //hooks for aop
  | 
  |     @Destroy
  |     aop$someMethod();
  |   }
  | 
  |   void aop$someMethod(){
  |     //original content of someMethod()
  |   }
  | }
  | 

So this is a bug, aop$someMethod() should not have the same annotations.

I think this will be a quick fix, so with any luck I should be able to fix this today.
http://jira.jboss.com/jira/browse/JBAOP-316



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990071#3990071

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



More information about the jboss-user mailing list