aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/covariance/CovAspect03.aj
diff options
context:
space:
mode:
authoraclement <aclement>2004-12-01 18:00:32 +0000
committeraclement <aclement>2004-12-01 18:00:32 +0000
commitd2fb8b7a3122f1e8816cf888b02643d5b31f9c3b (patch)
treeddeac81962eeb042e82ff449bb4495e302683b73 /tests/java5/covariance/CovAspect03.aj
parent52594375fcd495b3c601642555136b98ee853145 (diff)
downloadaspectj-d2fb8b7a3122f1e8816cf888b02643d5b31f9c3b.tar.gz
aspectj-d2fb8b7a3122f1e8816cf888b02643d5b31f9c3b.zip
72766: This is covariance support. only missing bit is for dynamic join point matching (marked XXXAJ5 in the code) - thats not a 1.5.0M1 item I dont think...
Diffstat (limited to 'tests/java5/covariance/CovAspect03.aj')
-rw-r--r--tests/java5/covariance/CovAspect03.aj10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/java5/covariance/CovAspect03.aj b/tests/java5/covariance/CovAspect03.aj
new file mode 100644
index 000000000..551c4b613
--- /dev/null
+++ b/tests/java5/covariance/CovAspect03.aj
@@ -0,0 +1,10 @@
+aspect CovAspect03 {
+
+ pointcut p(): call(Car getCar());
+
+ before(): p() {
+ System.out.println("[call(Car getCar()) matched on '"+thisJoinPoint+":"+thisJoinPoint.getSourceLocation()+"']");
+ }
+
+}
+