diff options
author | mwebster <mwebster> | 2006-10-02 10:00:33 +0000 |
---|---|---|
committer | mwebster <mwebster> | 2006-10-02 10:00:33 +0000 |
commit | a6f716a82b8c218e3c07f432caca3d00828ac564 (patch) | |
tree | 7017ce47f0f1e36091b91e3f0dff77f494ff41c7 /tests/src/org/aspectj/systemtest/ajc153 | |
parent | 7ebbc9657a00e5288c69783be56aae1bb98369c4 (diff) | |
download | aspectj-a6f716a82b8c218e3c07f432caca3d00828ac564.tar.gz aspectj-a6f716a82b8c218e3c07f432caca3d00828ac564.zip |
Bug 158205 "NullPointerException when weaving with bootstrap agent" (custom agent testcase)
Diffstat (limited to 'tests/src/org/aspectj/systemtest/ajc153')
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc153/ajc153.xml | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java index ab1c5524b..50998bf7f 100644 --- a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java @@ -129,6 +129,10 @@ public class Ajc153Tests extends org.aspectj.testing.XMLBasedAjcTestCase { " but found " + ipe.getSourceSignature(), expected, ipe.getSourceSignature()); } + + public void testNPEWithCustomAgent_pr158005() { + runTest("NPE with custom agent"); + } ///////////////////////////////////////// public static Test suite() { diff --git a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml index 6c5b05e6e..710a14809 100644 --- a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml +++ b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml @@ -493,4 +493,16 @@ <compile files="SampleTest.java"/> </ajc-test> + <ajc-test dir="ltw" title="NPE with custom agent" keywords="ltw"> + <compile files="java/net/URLClassLoader.java"/> + <compile files="HelloWorld.java" options="-outjar hello.jar"/> + <compile files="ExceptionHandler.aj" options="-outxml -outjar handler.jar"/> + <compile files="NullSecurityManager.java" options="-outjar security.jar"/> + <ant file="ant.xml" target="NPE with custom agent" verbose="true"> + <stdout> + <line text="Hello World!"/> + </stdout> + </ant> + </ajc-test> + </suite>
\ No newline at end of file |