Is there a way to access the thisJoinPoint of an advice from a second advice?

The following pointcut successfully picks out interesting calls from other 
advice.


pointcut breachOfContract( boolean condition ):
                call( * require( boolean ))
                && args( condition );



How can I access the data of the original thisJoinPoint? Something like:

before( boolean condition ): breachOfContract( condition ) {
        System.out.println( thisJoinPoint.getThis().getSourceLocation() );
}



      

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

Reply via email to