aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/ataspectj/coverage/Test040.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/java5/ataspectj/coverage/Test040.java')
-rw-r--r--tests/java5/ataspectj/coverage/Test040.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/java5/ataspectj/coverage/Test040.java b/tests/java5/ataspectj/coverage/Test040.java
new file mode 100644
index 000000000..038ebff1e
--- /dev/null
+++ b/tests/java5/ataspectj/coverage/Test040.java
@@ -0,0 +1,12 @@
+// "@Before with && in string"
+
+import org.aspectj.lang.annotation.*;
+
+class Foo{
+}
+aspect A{
+ @Before("call(* org.aspectprogrammer..*(..)) && this(Foo)")
+ public void callFromFoo() {
+ System.out.println("Call from Foo");
+ }
+}