From 09af5acb0c35cfcc90b85bb465313c7903d32c20 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 8 Feb 2011 16:22:42 +0000 Subject: 336471: makeEJSP --- tests/bugs1611/pr336471/Tester.aj | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tests/bugs1611/pr336471/Tester.aj (limited to 'tests/bugs1611') diff --git a/tests/bugs1611/pr336471/Tester.aj b/tests/bugs1611/pr336471/Tester.aj new file mode 100644 index 000000000..4603a4d62 --- /dev/null +++ b/tests/bugs1611/pr336471/Tester.aj @@ -0,0 +1,25 @@ + +aspect Tester { + before(): call(* Foo.*(..)) { + System.out.println(thisEnclosingJoinPointStaticPart); + } + public static void main(String[] args) { + new Foo().run(); + } +} + +class Foo { + int i = 5; + public void run() { + bar("abc"); + } + + public void bar(String s) { + System.out.println("hello"); + i = 4; + } +} + +class MyException extends Exception { + +} -- cgit v1.2.3