From f1d911e51803c8700edab71635036e95a968e68c Mon Sep 17 00:00:00 2001 From: jhugunin Date: Tue, 22 Apr 2003 22:29:51 +0000 Subject: [PATCH] a sketch of a test for a naming issue that doesn't appear to be an actual bug --- tests/bugs/AroundNames.java | 28 ++++++++++++++++++++++++++++ tests/jimTests.xml | 18 ++++-------------- 2 files changed, 32 insertions(+), 14 deletions(-) create mode 100644 tests/bugs/AroundNames.java 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 diff --git a/tests/jimTests.xml b/tests/jimTests.xml index a58aef5fa..e350c7f7c 100644 --- a/tests/jimTests.xml +++ b/tests/jimTests.xml @@ -1,22 +1,12 @@ - - - + + + - - - - - - - - -