diff options
Diffstat (limited to 'tests/features151/newarrayjoinpoint/Ten.java')
-rw-r--r-- | tests/features151/newarrayjoinpoint/Ten.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/features151/newarrayjoinpoint/Ten.java b/tests/features151/newarrayjoinpoint/Ten.java new file mode 100644 index 000000000..b9313f04e --- /dev/null +++ b/tests/features151/newarrayjoinpoint/Ten.java @@ -0,0 +1,25 @@ +public class Ten { + + public static void main(String []argv) { + Ten a = new Ten(); + int [] is = new int[5]; + } +} + +aspect X { + + pointcut p(Object o): call(new(..)) && target(o) && within(Ten); + + before(Object o): p(o) { + System.err.println("before "+o); + } + + after(Object o): p(o) { + System.err.println("after "+o); + } + + after() returning(Object o): call(*.new(..)) && within(Ten) { + System.err.println("afterReturning "+o.getClass()); + } + +}
\ No newline at end of file |