Because of how Java handles super calls, they are not call join
points. It's in the programming guide:
and the FAQ...
" A call join point matches only the ``external''
calls of a method or constructor, based on a signature, and it does not pick out
calls made with super, or this constructor calls."
------------Original Message------------
From: "Collinsworth, Troy Trent" <tcollinsworth1@xxxxxxxxxxx>
To: aspectj-users@xxxxxxxxxxx
Date: Fri, Sep-23-2005 1:43 PM
Subject: [aspectj-users] Pointcut on super method call
I can't get a
pointcut to advise a super classes method calls. Does this work? Any
suggestions on what might be wrong? I am using Java 1.4.2_06 and Eclipse AJ
version 1.2.0.20050610.
class A
{
public void setFu(String text) {
}
}
class B extends A
{
public void setBar(String text) {
super.setFu(text) {
}
}
}
before(B b) :
(call (* B.set*(..)))
&&
target(b) {
someAdvice(comp);
}
static void
swingAdvice(B b) {
System.out.println("advises B");
}
Thanks,
Troy
The information contained in this message may be
privileged,
confidential, and protected from disclosure. If the reader of
this
message is not the intended recipient, or any employee or
agent
responsible for delivering this message to the intended recipient,
you
are hereby notified that any dissemination, distribution, or copying
of
this communication is strictly prohibited. If you have received
this
communication in error, please notify us immediately by replying to
the
message and deleting it from your computer.
Thank you. Paychex,
Inc.
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users