aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/covariance/CovAspect01.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/java5/covariance/CovAspect01.aj')
-rw-r--r--tests/java5/covariance/CovAspect01.aj10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/java5/covariance/CovAspect01.aj b/tests/java5/covariance/CovAspect01.aj
new file mode 100644
index 000000000..fa66dd0c1
--- /dev/null
+++ b/tests/java5/covariance/CovAspect01.aj
@@ -0,0 +1,10 @@
+aspect CovAspect01 {
+
+ pointcut p(): call(* getCar());
+
+ before(): p() {
+ System.out.println("[call(* getCar()) matched on '"+thisJoinPoint+":"+thisJoinPoint.getSourceLocation()+"']");
+ }
+
+}
+