From: aclement Date: Thu, 17 Nov 2011 21:20:08 +0000 (+0000) Subject: 363962 X-Git-Tag: preJava7Merge~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=061afbf70e6f64b1e8a3c034cc5ef6d1652df76d;p=aspectj.git 363962 --- diff --git a/tests/bugs1610/pr363962/Code.java b/tests/bugs1610/pr363962/Code.java new file mode 100644 index 000000000..3c2d5c49a --- /dev/null +++ b/tests/bugs1610/pr363962/Code.java @@ -0,0 +1,18 @@ +import org.aspectj.weaver.WeakClassLoaderReference; + + +public class Code { + + /** + * @param args + */ + public static void main(String[] args) { + try{ + WeakClassLoaderReference wclref = new WeakClassLoaderReference(null); + System.out.println("OK"); + }catch(Throwable npe){ + System.out.println("KO"); + } + } + +} \ No newline at end of file diff --git a/tests/src/org/aspectj/systemtest/ajc1610/Ajc1610Tests.java b/tests/src/org/aspectj/systemtest/ajc1610/Ajc1610Tests.java index e0188f818..f71420923 100644 --- a/tests/src/org/aspectj/systemtest/ajc1610/Ajc1610Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc1610/Ajc1610Tests.java @@ -18,6 +18,11 @@ import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc1610Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + + public void testNPE_pr363962() { + runTest("pr363962"); + } + public void testOffset0_bug324932() { runTest("pr324932"); } diff --git a/tests/src/org/aspectj/systemtest/ajc1610/ajc1610.xml b/tests/src/org/aspectj/systemtest/ajc1610/ajc1610.xml index fc8c61a90..7dce456b7 100644 --- a/tests/src/org/aspectj/systemtest/ajc1610/ajc1610.xml +++ b/tests/src/org/aspectj/systemtest/ajc1610/ajc1610.xml @@ -2,6 +2,17 @@ + + + + + + + + + + +