Created Interceptor name is assumed to not change for a given
scenario
----------------------------------------------------------------------
Key: JBAOP-573
URL:
https://jira.jboss.org/jira/browse/JBAOP-573
Project: JBoss AOP
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 2.0.0.CR9
Reporter: Flavia Rainone
Assignee: Flavia Rainone
Fix For: 2.0.1.GA, 2.1.0.GA
Method ClassInstanceAdvisor.removeInterceptorStack() invokes create on each
InterceptorFactory of the stack so it can find the name of the interceptors to remove.
This method assumes that the name of the interceptor it is creating is the same name of
the interceptor it must remove. However, the definition of the name of an interceptor is
up to the internal workings of the interceptor implementation:
public MyInterceptor implements Interceptor
{
public static int count = 0;
String name;
public MyInterceptor()
{
this.name = "Interceptor number " + count ++
}
...
}
The same behaviour can be seen at GeneratedInstanceAdvisorMixin.removeInterceptorStack
method.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: