From: zoid <nu...@jb...> - 2005-06-20 12:45:50
|
Turns out the problem was on my end... But IMO, it should have worked anyway. It turns out, foo() was defined one level higher, in X, the superclass of A. So, even though B is an instance of A (and of X), since the method foo() is defined in X, it looks as though, I must use $instanceof(x.y.z.X) to match executions of foo(). So what I have is class X that defines foo() and class A that extends X. Both in a jar, under lib. Then I deploy a class B that extends A and does not override foo(). In that case: execution(public boolean $instanceof(x.y.z.X)->foo()) WORKS execution(public boolean $instanceof(x.y.z.A)->foo()) does NOT work I haven't looked at the code but I'm guessing JBossAOP implements the latter pointcut by transforming only class A. So that the execution of foo() within class X isn't "seen". Is that right? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882095#3882095 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3882095 |