[jboss-jira] [JBoss JIRA] Closed: (JBAOP-285) overridden method super calls do not get intercepted with generated advisors
Kabir Khan (JIRA)
jira-events at jboss.com
Mon Sep 18 08:57:01 EDT 2006
[ http://jira.jboss.com/jira/browse/JBAOP-285?page=all ]
Kabir Khan closed JBAOP-285.
----------------------------
Resolution: Done
> overridden method super calls do not get intercepted with generated advisors
> ----------------------------------------------------------------------------
>
> Key: JBAOP-285
> URL: http://jira.jboss.com/jira/browse/JBAOP-285
> Project: JBoss AOP
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Reporter: Kabir Khan
> Assigned To: Kabir Khan
> Fix For: 2.0.0.alpha
>
>
> class Base{
> void superCall(){}
> }
> class Sub extends Base{
> void superCall(){super.superCall();}
> }
> <bind pointcut="execution(* $instanceof{Base}->superCall())">
> <interceptor class="X"/>
> </bind>
> Sub sub = new Sub();
> sub.superCall();
> We only get intercepted when calling sub.superCall(), the call to base.superCall() does not get intercepted.
> I added a failing test to org.jboss.test.aop.extender.ExtenderTestCase
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list