From a89eac7f94cbea34f2ca76e49a1c42a594194080 Mon Sep 17 00:00:00 2001 From: mwebster Date: Tue, 1 Aug 2006 13:09:06 +0000 Subject: Bug 150487 "Tracing and Logging Framework" (lazy initialize SimpleDateFormat to prevent recursion in JDK 1.4 LTW) --- tests/ltw/ExceptionHandler.aj | 9 ++++++++ tests/ltw/HelloWorld.java | 1 + tests/ltw/ant.xml | 26 ++++++++++++++++++++-- .../aspectj/systemtest/ajc150/ltw/LTWTests.java | 8 +++++-- .../aspectj/systemtest/ajc150/ltw/ltw-tests.xml | 17 +++++++++----- 5 files changed, 51 insertions(+), 10 deletions(-) create mode 100644 tests/ltw/ExceptionHandler.aj (limited to 'tests') diff --git a/tests/ltw/ExceptionHandler.aj b/tests/ltw/ExceptionHandler.aj new file mode 100644 index 000000000..447b59577 --- /dev/null +++ b/tests/ltw/ExceptionHandler.aj @@ -0,0 +1,9 @@ +public aspect ExceptionHandler { + void around() : execution(public void main(String[])) { + try { + proceed(); + } + catch (Exception ex) { + } + } +} \ No newline at end of file diff --git a/tests/ltw/HelloWorld.java b/tests/ltw/HelloWorld.java index 8e5a1fdd7..9c810cf25 100644 --- a/tests/ltw/HelloWorld.java +++ b/tests/ltw/HelloWorld.java @@ -2,6 +2,7 @@ public class HelloWorld { public static void main (String[] args) throws Exception { System.out.println("Hello World!"); + throw new Exception(); } } \ No newline at end of file diff --git a/tests/ltw/ant.xml b/tests/ltw/ant.xml index 6f7971d96..38f51fd49 100644 --- a/tests/ltw/ant.xml +++ b/tests/ltw/ant.xml @@ -6,16 +6,38 @@ name="jdwp" value="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"/> - + + + + + + + + + + + + + + + - + + + + + diff --git a/tests/src/org/aspectj/systemtest/ajc150/ltw/LTWTests.java b/tests/src/org/aspectj/systemtest/ajc150/ltw/LTWTests.java index 4a5a7e0ee..73b6eebd1 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ltw/LTWTests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/ltw/LTWTests.java @@ -97,8 +97,12 @@ public class LTWTests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("Odd zip on classpath"); } - public void testJDK14LTW() { - runTest("JDK14 LTW"); + public void testJ14LTWWithXML() { + runTest("JDK14 LTW with XML"); + } + + public void testJ14LTWWithASPECTPATH() { + runTest("JDK14 LTW with ASPECTPATH"); } // separate bugzilla patch has this one... commented out diff --git a/tests/src/org/aspectj/systemtest/ajc150/ltw/ltw-tests.xml b/tests/src/org/aspectj/systemtest/ajc150/ltw/ltw-tests.xml index 57946c186..bc7120870 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ltw/ltw-tests.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ltw/ltw-tests.xml @@ -470,11 +470,16 @@ commented out: reported in another bugzilla bug... --> - - - + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3