From 693945fed3ea7482c5c312063dfac881f0d0d1c9 Mon Sep 17 00:00:00 2001 From: aclement Date: Sun, 29 Jan 2006 10:12:10 +0000 Subject: fix and test for 123901. test for 125475 (commented out) --- tests/bugs151/pr123901/A.java | 5 +++++ tests/bugs151/pr123901/B.java | 8 ++++++++ tests/bugs151/pr125475/TestEmptyPointcutAtAspect.java | 6 ++++++ 3 files changed, 19 insertions(+) create mode 100644 tests/bugs151/pr123901/A.java create mode 100644 tests/bugs151/pr123901/B.java create mode 100644 tests/bugs151/pr125475/TestEmptyPointcutAtAspect.java (limited to 'tests/bugs151') diff --git a/tests/bugs151/pr123901/A.java b/tests/bugs151/pr123901/A.java new file mode 100644 index 000000000..5ed3cb783 --- /dev/null +++ b/tests/bugs151/pr123901/A.java @@ -0,0 +1,5 @@ +package a; + +public class A { + public void x(){} +} diff --git a/tests/bugs151/pr123901/B.java b/tests/bugs151/pr123901/B.java new file mode 100644 index 000000000..df8baf065 --- /dev/null +++ b/tests/bugs151/pr123901/B.java @@ -0,0 +1,8 @@ +package a; +public aspect B { + void around():call(void *(..)){ + A a = new A(); + a.A.a.x(); // This line raises the NPE + proceed(); + } +} diff --git a/tests/bugs151/pr125475/TestEmptyPointcutAtAspect.java b/tests/bugs151/pr125475/TestEmptyPointcutAtAspect.java new file mode 100644 index 000000000..12334f4b9 --- /dev/null +++ b/tests/bugs151/pr125475/TestEmptyPointcutAtAspect.java @@ -0,0 +1,6 @@ +@Aspect +public class TestEmptyPointcutAtAspect { + + @Pointcut("") + protected void scope () {} +} -- cgit v1.2.3