diff options
author | aclement <aclement> | 2006-01-29 10:12:10 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-01-29 10:12:10 +0000 |
commit | 693945fed3ea7482c5c312063dfac881f0d0d1c9 (patch) | |
tree | a1ec419ad0cca914f38eada1764a5393ed447100 /tests/bugs151 | |
parent | 5d7f4e1f89c76fd54c40d513af4c19b8dd74f771 (diff) | |
download | aspectj-693945fed3ea7482c5c312063dfac881f0d0d1c9.tar.gz aspectj-693945fed3ea7482c5c312063dfac881f0d0d1c9.zip |
fix and test for 123901. test for 125475 (commented out)
Diffstat (limited to 'tests/bugs151')
-rw-r--r-- | tests/bugs151/pr123901/A.java | 5 | ||||
-rw-r--r-- | tests/bugs151/pr123901/B.java | 8 | ||||
-rw-r--r-- | tests/bugs151/pr125475/TestEmptyPointcutAtAspect.java | 6 |
3 files changed, 19 insertions, 0 deletions
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 () {} +} |