summaryrefslogtreecommitdiffstats
path: root/tests/java5/annotations/binding/complexExample/X2.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/java5/annotations/binding/complexExample/X2.java')
-rw-r--r--tests/java5/annotations/binding/complexExample/X2.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/java5/annotations/binding/complexExample/X2.java b/tests/java5/annotations/binding/complexExample/X2.java
new file mode 100644
index 000000000..717f80108
--- /dev/null
+++ b/tests/java5/annotations/binding/complexExample/X2.java
@@ -0,0 +1,14 @@
+// Same as X but includes annotation binding
+import d.e.f.Color;
+
+public aspect X2 {
+
+ before(Color c): call(* *(..)) && @annotation(c) {
+ System.err.println("Before call to "+thisJoinPoint+" color is "+c);
+ }
+
+ before(Color c): execution(* *(..)) && @annotation(c) {
+ System.err.println("Before execution of "+thisJoinPoint+" color is "+c);
+ }
+
+}