the directive cflowbelow ?
 

Cordialement / Best regards

Jean-Louis Pasturel



  _____  

De : aspectj-users-boun...@eclipse.org 
[mailto:aspectj-users-boun...@eclipse.org] De la part de ???
Envoyé : vendredi 9 juillet 2010 15:48
À : aspectj-users@eclipse.org
Objet : Re: [aspectj-users] About target~


Yes~Child class is empty, but even I override m in class Child, the result was 
same.

Thanks for your reply~

於 2010/7/9 下午 09:39, jeanlouis.pastu...@orange-ftgroup.com 提到: 

 
is it always true when you over-load the method m in the Child class ?

Cordialement / Best regards



Jean-Louis Pasturel


 


  _____  

De : aspectj-users-boun...@eclipse.org 
[mailto:aspectj-users-boun...@eclipse.org] De la part de ???
Envoyé : vendredi 9 juillet 2010 15:36
À : aspectj-users@eclipse.org
Objet : [aspectj-users] About target~


Why i can't limite the join point generate only at parent.m();?
Now the join point are generate at parent.m(); and child.m(); in Main class.

Thank you~
================================================
public aspect Example {
    pointcut jp_call_Parent_m():
        call(void m()) && target(Parent);
    
    before(): jp_call_Parent_m(){
        System.out.println("entering: " + thisJoinPoint);
        System.out.println("      at: " + thisJoinPoint.getSourceLocation());
    }
}
================================================
public class Main {
    public Main(){
        Parent parent = new Parent();
        parent.m();
        
        Child child = new Child();
        child.m();
    }
    
    
    public static void main(String[] args) {
        new Main();
    }
}
================================================
public class Parent {
    
    public Parent(){
        System.out.println("Constructor of Parent execution.");
    }
    
    public void x(){
        System.out.println("Method x of Parent execution.");
    }
    
    public void m(){
        System.out.println("Method m of Parent execution.");
    }
}
================================================
public class Child extends Parent{
} 

*********************************

This message and any attachments (the "message") are confidential and intended 
solely for the addressees. 

Any unauthorised use or dissemination is prohibited.

Messages are susceptible to alteration. 

France Telecom Group shall not be liable for the message if altered, changed or 
falsified.

If you are not the intended addressee of this message, please cancel it 
immediately and inform the sender.

********************************


_______________________________________________

aspectj-users mailing list

aspectj-users@eclipse.org

https://dev.eclipse.org/mailman/listinfo/aspectj-users



*********************************
This message and any attachments (the "message") are confidential and intended 
solely for the addressees. 
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration. 
France Telecom Group shall not be liable for the message if altered, changed or 
falsified.
If you are not the intended addressee of this message, please cancel it 
immediately and inform the sender.
********************************

_______________________________________________
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to