diff options
Diffstat (limited to 'tests/java5/autoboxing/AspectInteger.aj')
-rw-r--r-- | tests/java5/autoboxing/AspectInteger.aj | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/java5/autoboxing/AspectInteger.aj b/tests/java5/autoboxing/AspectInteger.aj new file mode 100644 index 000000000..4fb7e815f --- /dev/null +++ b/tests/java5/autoboxing/AspectInteger.aj @@ -0,0 +1,11 @@ +public aspect AspectInteger {
+
+ // The pointcuts here expose context
+ before(Integer i): within(AutoboxingI) && call(* met*(..)) && args(i) {
+ System.err.println("Matching by Integer:"+i);
+ }
+
+ before(int i): within(AutoboxingI) && call(* met*(..)) && args(i) {
+ System.err.println("Matching by int:"+i);
+ }
+}
|