Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] pointcut to match inherited methods

Hello All,

I have a simple question. The same question was asked in this post but it
seems to have gone unaddressed as far as my understanding goes.
http://old.nabble.com/Weaving-inherited-methods-to15405848.html#a15405848

Anyway, the question is, I want a pointcut to match method calls/executions
of inherited methods in a subclass. For instance.

Class A{
    public void methodA() {}
}

Class B extends A() {
}

Class C() {
B b = new B();
b.methodA(); // Want to catch this.
}

As mentioned, I want to match the statement ending with the comment. 
Please help me out with the pointcut. Thank you very much

-- 
View this message in context: http://old.nabble.com/pointcut-to-match-inherited-methods-tp28398859p28398859.html
Sent from the AspectJ - users mailing list archive at Nabble.com.



Back to the top