]> source.dussan.org Git - aspectj.git/commitdiff
No longer a restriction.
authoraclement <aclement>
Mon, 31 Jan 2005 13:20:24 +0000 (13:20 +0000)
committeraclement <aclement>
Mon, 31 Jan 2005 13:20:24 +0000 (13:20 +0000)
tests/java5/annotations/thisOrtarget/BindingLimitation.aj [deleted file]
tests/java5/annotations/thisOrtarget/BindingWithAtTarget.aj [new file with mode: 0644]

diff --git a/tests/java5/annotations/thisOrtarget/BindingLimitation.aj b/tests/java5/annotations/thisOrtarget/BindingLimitation.aj
deleted file mode 100644 (file)
index 1ed24c9..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-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
diff --git a/tests/java5/annotations/thisOrtarget/BindingWithAtTarget.aj b/tests/java5/annotations/thisOrtarget/BindingWithAtTarget.aj
new file mode 100644 (file)
index 0000000..6594dd3
--- /dev/null
@@ -0,0 +1,11 @@
+public aspect BindingLimitation {\r
+       \r
+  pointcut doSomethingExecution() : execution(* doSomething());\r
+  pointcut doSomethingCall() : call(* doSomething());\r
+  \r
+  after(MyAnnotation ann) returning : @target(ann) && doSomethingCall() {\r
+    System.err.println("Annotation is "+ann);\r
+       // should be compile time error (limitation)\r
+  }\r
+       \r
+}\r