aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2005-01-31 13:20:24 +0000
committeraclement <aclement>2005-01-31 13:20:24 +0000
commitfb2f38f003c9a29f5131b05ede54d9a34767a684 (patch)
tree1052fb382ec6d14c09c26e5662bad5e04b00bdfa
parentfed2a4ec429d41bcddd30a08a2155f940942e90f (diff)
downloadaspectj-fb2f38f003c9a29f5131b05ede54d9a34767a684.tar.gz
aspectj-fb2f38f003c9a29f5131b05ede54d9a34767a684.zip
No longer a restriction.
-rw-r--r--tests/java5/annotations/thisOrtarget/BindingWithAtTarget.aj (renamed from tests/java5/annotations/thisOrtarget/BindingLimitation.aj)21
1 files changed, 11 insertions, 10 deletions
diff --git a/tests/java5/annotations/thisOrtarget/BindingLimitation.aj b/tests/java5/annotations/thisOrtarget/BindingWithAtTarget.aj
index 1ed24c99f..6594dd3f3 100644
--- a/tests/java5/annotations/thisOrtarget/BindingLimitation.aj
+++ b/tests/java5/annotations/thisOrtarget/BindingWithAtTarget.aj
@@ -1,10 +1,11 @@
-public aspect BindingLimitation {
-
- pointcut doSomethingExecution() : execution(* doSomething());
- pointcut doSomethingCall() : call(* doSomething());
-
- after(MyAnnotation ann) returning : @target(ann) && doSomethingCall() {
- // should be compile time error (limitation)
- }
-
-} \ No newline at end of file
+public aspect BindingLimitation {
+
+ pointcut doSomethingExecution() : execution(* doSomething());
+ pointcut doSomethingCall() : call(* doSomething());
+
+ after(MyAnnotation ann) returning : @target(ann) && doSomethingCall() {
+ System.err.println("Annotation is "+ann);
+ // should be compile time error (limitation)
+ }
+
+}