From fb2f38f003c9a29f5131b05ede54d9a34767a684 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 31 Jan 2005 13:20:24 +0000 Subject: No longer a restriction. --- tests/java5/annotations/thisOrtarget/BindingLimitation.aj | 10 ---------- tests/java5/annotations/thisOrtarget/BindingWithAtTarget.aj | 11 +++++++++++ 2 files changed, 11 insertions(+), 10 deletions(-) delete mode 100644 tests/java5/annotations/thisOrtarget/BindingLimitation.aj create mode 100644 tests/java5/annotations/thisOrtarget/BindingWithAtTarget.aj diff --git a/tests/java5/annotations/thisOrtarget/BindingLimitation.aj b/tests/java5/annotations/thisOrtarget/BindingLimitation.aj deleted file mode 100644 index 1ed24c99f..000000000 --- a/tests/java5/annotations/thisOrtarget/BindingLimitation.aj +++ /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 index 000000000..6594dd3f3 --- /dev/null +++ b/tests/java5/annotations/thisOrtarget/BindingWithAtTarget.aj @@ -0,0 +1,11 @@ +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) + } + +} -- cgit v1.2.3