aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/ataspectj/coverage/Test042.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/java5/ataspectj/coverage/Test042.java')
-rw-r--r--tests/java5/ataspectj/coverage/Test042.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/java5/ataspectj/coverage/Test042.java b/tests/java5/ataspectj/coverage/Test042.java
new file mode 100644
index 000000000..fd19f3e3e
--- /dev/null
+++ b/tests/java5/ataspectj/coverage/Test042.java
@@ -0,0 +1,11 @@
+//"@AdviceName used on @Before advice"
+
+import org.aspectj.lang.annotation.*;
+
+aspect A{
+ @AdviceName("callFromFoo")
+ @Before("call(* org.aspectprogrammer..*(..))")
+ public void callFromFoo() {
+ System.out.println("Call from Foo");
+ }
+}