aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/covariance/CovAspect08.aj
blob: 5920981dc9d1188970fce2d8af2893049ac9528a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
aspect CovAspect08 {
	
  pointcut p1(): call(FastCar getCar());

  before(): p1() {
  	System.out.println("[call(FastCar getCar()) matched on '"+thisJoinPoint+":"+thisJoinPoint.getSourceLocation()+"']");
  }
  
  pointcut p2(): call(FastCar Sub.getCar());

  before(): p2() {
  	System.out.println("[call(FastCar Sub.getCar()) matched on '"+thisJoinPoint+":"+thisJoinPoint.getSourceLocation()+"']");
  }

}