aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/annotations/declare/atfield/TwoOnOneField.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/java5/annotations/declare/atfield/TwoOnOneField.aj')
-rw-r--r--tests/java5/annotations/declare/atfield/TwoOnOneField.aj11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/java5/annotations/declare/atfield/TwoOnOneField.aj b/tests/java5/annotations/declare/atfield/TwoOnOneField.aj
new file mode 100644
index 000000000..d0f37b6b3
--- /dev/null
+++ b/tests/java5/annotations/declare/atfield/TwoOnOneField.aj
@@ -0,0 +1,11 @@
+// trying to put two annotations onto one field
+public aspect TwoOnOneField {
+ declare @field: public int * : @Colored("red");
+ declare @field: public int * : @Colored("blue");
+}
+
+aspect X {
+ before(): set(@Colored * *) {
+ System.err.println("Colored field access at "+thisJoinPoint);
+ }
+}