From c315f9d9a754d01ea608d6d1ae020889d4018fc6 Mon Sep 17 00:00:00 2001 From: mwebster Date: Thu, 5 Oct 2006 10:13:54 +0000 Subject: Bug 158957 "NPE in LTW with RMI dynamic proxies w/ pointcut reuse" (restore catch(Throwable) in Aj.preProcess() and make adaptor disabled by default) --- tests/bugs153/pr158957/HelloWorld.java | 11 +++++++++++ tests/bugs153/pr158957/Missing.java | 3 +++ tests/bugs153/pr158957/PointcutLibrary.aj | 9 +++++++++ tests/bugs153/pr158957/Tracing.aj | 6 ++++++ tests/bugs153/pr158957/ant.xml | 27 +++++++++++++++++++++++++++ tests/bugs153/pr158957/aop.xml | 9 +++++++++ 6 files changed, 65 insertions(+) create mode 100644 tests/bugs153/pr158957/HelloWorld.java create mode 100644 tests/bugs153/pr158957/Missing.java create mode 100644 tests/bugs153/pr158957/PointcutLibrary.aj create mode 100644 tests/bugs153/pr158957/Tracing.aj create mode 100644 tests/bugs153/pr158957/ant.xml create mode 100644 tests/bugs153/pr158957/aop.xml (limited to 'tests/bugs153') diff --git a/tests/bugs153/pr158957/HelloWorld.java b/tests/bugs153/pr158957/HelloWorld.java new file mode 100644 index 000000000..8f62298fa --- /dev/null +++ b/tests/bugs153/pr158957/HelloWorld.java @@ -0,0 +1,11 @@ +public class HelloWorld { + + public void println () { + System.out.println("Hello World!"); + } + + public static void main (String[] args) throws Exception { + new HelloWorld().println(); + } + +} \ No newline at end of file diff --git a/tests/bugs153/pr158957/Missing.java b/tests/bugs153/pr158957/Missing.java new file mode 100644 index 000000000..a61ca7bfd --- /dev/null +++ b/tests/bugs153/pr158957/Missing.java @@ -0,0 +1,3 @@ +public interface Missing { + public void doIt (); +} \ No newline at end of file diff --git a/tests/bugs153/pr158957/PointcutLibrary.aj b/tests/bugs153/pr158957/PointcutLibrary.aj new file mode 100644 index 000000000..ffda35e80 --- /dev/null +++ b/tests/bugs153/pr158957/PointcutLibrary.aj @@ -0,0 +1,9 @@ +public aspect PointcutLibrary { + + public static pointcut doIt () : + execution(public void doIt()) && this(Missing); + + public static pointcut println () : + execution(public void println(..)); + +} \ No newline at end of file diff --git a/tests/bugs153/pr158957/Tracing.aj b/tests/bugs153/pr158957/Tracing.aj new file mode 100644 index 000000000..5a974ad2e --- /dev/null +++ b/tests/bugs153/pr158957/Tracing.aj @@ -0,0 +1,6 @@ +public aspect Tracing { + + before () : PointcutLibrary.println() { + System.out.println("? " + thisJoinPointStaticPart.getSignature().getName()); + } +} \ No newline at end of file diff --git a/tests/bugs153/pr158957/ant.xml b/tests/bugs153/pr158957/ant.xml new file mode 100644 index 000000000..c2de686f1 --- /dev/null +++ b/tests/bugs153/pr158957/ant.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/bugs153/pr158957/aop.xml b/tests/bugs153/pr158957/aop.xml new file mode 100644 index 000000000..fec692fda --- /dev/null +++ b/tests/bugs153/pr158957/aop.xml @@ -0,0 +1,9 @@ + + + + + + + + + -- cgit v1.2.3