From: aclement Date: Mon, 31 Jan 2005 13:20:24 +0000 (+0000) Subject: No longer a restriction. X-Git-Tag: Root_AspectJ5_Development~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fb2f38f003c9a29f5131b05ede54d9a34767a684;p=aspectj.git No longer a restriction. --- 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) + } + +}