aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/faultingInSource/SimpleTracing.java
blob: 8744d50482320b8a326fba3e5d17b7a71d750a78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import org.aspectj.lang.annotation.SuppressAjWarnings;

aspect SimpleTracing
{
	pointcut traceCall():
		call (void SampleClass.foo(..));
		
	@SuppressAjWarnings("adviceDidNotMatch") before(): traceCall()
	{
		System.out.println ("Entering: " + thisJoinPoint);
	}
	
	@SuppressAjWarnings("adviceDidNotMatch") after(): traceCall()
	{
		System.out.println ("Exiting: " + thisJoinPoint);
	}
}