diff options
author | aclement <aclement> | 2005-02-01 08:23:18 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-02-01 08:23:18 +0000 |
commit | 4a4ea5ef315e2b5501930199d22932e71fbc04b0 (patch) | |
tree | f175ae00703cba35ce9e88f166dbd15f01f849df | |
parent | fd3b7dc5342d95ce675aea787e16222b4413e9c1 (diff) | |
download | aspectj-4a4ea5ef315e2b5501930199d22932e71fbc04b0.tar.gz aspectj-4a4ea5ef315e2b5501930199d22932e71fbc04b0.zip |
Annotation Binding - more test data.
-rw-r--r-- | tests/java5/annotations/binding/InitBinding.aj | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/java5/annotations/binding/InitBinding.aj b/tests/java5/annotations/binding/InitBinding.aj index 87e8caca4..315cf4ae6 100644 --- a/tests/java5/annotations/binding/InitBinding.aj +++ b/tests/java5/annotations/binding/InitBinding.aj @@ -40,3 +40,18 @@ aspect X { throw new RuntimeException("Expected "+exp.length+" advice runs but did "+X.i);
}
}
+
+
+//aspect X {
+// int i = 0;
+//
+// before(Colored c): preinitialization(new(..)) && !within(X) && @annotation(c) {
+// i++;
+// System.err.println(thisJoinPoint+" color="+c.color());
+// if (i==1 && !c.color().equals("orange")) throw new RuntimeException("First time through should be red, but is "+c.color());
+// if (i==2 && !c.color().equals("yellow")) throw new RuntimeException("Second time through should be green, but is "+c.color());
+// if (i==3 && !c.color().equals("brown")) throw new RuntimeException("Third time through should be blue, but is "+c.color());
+// System.err.println(c.color());
+// }
+//}
+//
|