From: aclement Date: Mon, 19 Nov 2007 16:34:14 +0000 (+0000) Subject: 162539: NullPointerException when pointcut library missing @aspect annotion: tests... X-Git-Tag: V1_5_4rc1~24 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2c53de22828f0d89e5b2abc04199eb53f30e21a8;p=aspectj.git 162539: NullPointerException when pointcut library missing @aspect annotion: tests and fixes. Modified resolution of @AJ pointcuts and optimized searching for @AJ elements in all classes --- diff --git a/tests/src/org/aspectj/systemtest/ajc154/Ajc154Tests.java b/tests/src/org/aspectj/systemtest/ajc154/Ajc154Tests.java index c29ea92f9..6560b56bf 100644 --- a/tests/src/org/aspectj/systemtest/ajc154/Ajc154Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc154/Ajc154Tests.java @@ -44,6 +44,10 @@ public class Ajc154Tests extends org.aspectj.testing.XMLBasedAjcTestCase { // //parser.registerPointcutDesignatorHandler(beanHandler); // runTest("new pointcut designators in a reference pointcut"); // } + public void testNPEWithMissingAtAspectAnnotationInPointcutLibrary_pr162539_1() { runTest("NPE with missing @aspect annotation in pointcut library - 1"); } + public void testNPEWithMissingAtAspectAnnotationInPointcutLibrary_pr162539_2() { runTest("NPE with missing @aspect annotation in pointcut library - 2"); } + + public void testWrongNumberOfTypeParameters_pr176991() { runTest("wrong number of type parameters");} public void testArgNamesDoesNotWork_pr148381_1() { runTest("argNames does not work - simple");} public void testArgNamesDoesNotWork_pr148381_2() { runTest("argNames does not work - error1");} @@ -65,7 +69,6 @@ public class Ajc154Tests extends org.aspectj.testing.XMLBasedAjcTestCase { //public void testGenericTypeParameterizedWithArrayType_pr167197() { runTest("generic type parameterized with array type");} - //public void testWrongNumberOfTypeParameters_pr176991() { runTest("wrong number of type parameters");} public void testItdOnGenericInnerInterface_pr203646() { runTest("npe with itd on inner generic interface");} public void testItdOnGenericInnerInterface_pr203646_A() { runTest("npe with itd on inner generic interface - exampleA");} public void testItdOnGenericInnerInterface_pr203646_B() { runTest("npe with itd on inner generic interface - exampleB");} diff --git a/tests/src/org/aspectj/systemtest/ajc154/ajc154.xml b/tests/src/org/aspectj/systemtest/ajc154/ajc154.xml index ebb449c48..371985a8e 100644 --- a/tests/src/org/aspectj/systemtest/ajc154/ajc154.xml +++ b/tests/src/org/aspectj/systemtest/ajc154/ajc154.xml @@ -2,7 +2,6 @@ - @@ -166,6 +165,14 @@ + + + + + + + +