From 0247be6dac03e2f96a23cdad7d8ce0f120c62f89 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 13 Dec 2010 20:31:12 +0000 Subject: [PATCH] 332388: test and fix --- tests/bugs1611/pr332388_2/A.java | 6 ++++++ tests/bugs1611/pr332388_2/M.java | 1 + tests/bugs1611/pr332388_2/MyAspect.java | 9 +++++++++ .../src/org/aspectj/systemtest/ajc1611/Ajc1611Tests.java | 4 ++++ tests/src/org/aspectj/systemtest/ajc1611/ajc1611.xml | 9 +++++++++ 5 files changed, 29 insertions(+) create mode 100644 tests/bugs1611/pr332388_2/A.java create mode 100644 tests/bugs1611/pr332388_2/M.java create mode 100644 tests/bugs1611/pr332388_2/MyAspect.java diff --git a/tests/bugs1611/pr332388_2/A.java b/tests/bugs1611/pr332388_2/A.java new file mode 100644 index 000000000..75835bc31 --- /dev/null +++ b/tests/bugs1611/pr332388_2/A.java @@ -0,0 +1,6 @@ +public class A { + public void a(Class list) {} + public void x() { + a(null); + } +} diff --git a/tests/bugs1611/pr332388_2/M.java b/tests/bugs1611/pr332388_2/M.java new file mode 100644 index 000000000..9b4658fd8 --- /dev/null +++ b/tests/bugs1611/pr332388_2/M.java @@ -0,0 +1 @@ +public class M {} diff --git a/tests/bugs1611/pr332388_2/MyAspect.java b/tests/bugs1611/pr332388_2/MyAspect.java new file mode 100644 index 000000000..9252d17c1 --- /dev/null +++ b/tests/bugs1611/pr332388_2/MyAspect.java @@ -0,0 +1,9 @@ +import org.aspectj.lang.annotation.*; + +@Aspect +public class MyAspect { + @Before("call(* *.*(..)) && target(x)") + public void myAdvice(CharSequence x) { + System.out.println(); + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc1611/Ajc1611Tests.java b/tests/src/org/aspectj/systemtest/ajc1611/Ajc1611Tests.java index 75a4f51cf..408ebb02d 100644 --- a/tests/src/org/aspectj/systemtest/ajc1611/Ajc1611Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc1611/Ajc1611Tests.java @@ -25,6 +25,10 @@ public class Ajc1611Tests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("pr332388"); } + public void testMissingType_332388_2() { + runTest("pr332388 - 2"); + } + public void testDeclareField_328840() { runTest("pr328840"); } diff --git a/tests/src/org/aspectj/systemtest/ajc1611/ajc1611.xml b/tests/src/org/aspectj/systemtest/ajc1611/ajc1611.xml index 58be6e641..56434cff6 100644 --- a/tests/src/org/aspectj/systemtest/ajc1611/ajc1611.xml +++ b/tests/src/org/aspectj/systemtest/ajc1611/ajc1611.xml @@ -22,4 +22,13 @@ + + + + + + + + + \ No newline at end of file -- 2.39.5