diff options
-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)
+ }
+
+}
|