diff options
Diffstat (limited to 'tests/bugs')
-rw-r--r-- | tests/bugs/AroundNames.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/bugs/AroundNames.java b/tests/bugs/AroundNames.java new file mode 100644 index 000000000..27b2aa7f3 --- /dev/null +++ b/tests/bugs/AroundNames.java @@ -0,0 +1,28 @@ +public class AroundNames { + public static void main(String[] args) { + new Base().doit(); + new Derived().doit(); + } +} + +class Base { + static private final void m() {} + + public void doit() { + m(); + } +} + +class Derived { + static private final void m() { return; } // "Derived"; } + + public void doit() { + m(); + } +} + +aspect A { + Object around(): execution(* m()) { + return proceed(); + } +}
\ No newline at end of file |