Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[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.


Back to the top