summaryrefslogtreecommitdiffstats
path: root/tests/src/org/aspectj
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2016-02-10 15:46:53 -0800
committerAndy Clement <aclement@pivotal.io>2016-02-10 15:46:53 -0800
commitb54540d9a4843a46d6c2a25f6d2e7470648ef7c7 (patch)
tree58794fe0d924374656569a115b078f05bc924ef3 /tests/src/org/aspectj
parent4bee355d22f5dd4bb2120ca725f0c8b9eb904976 (diff)
downloadaspectj-b54540d9a4843a46d6c2a25f6d2e7470648ef7c7.tar.gz
aspectj-b54540d9a4843a46d6c2a25f6d2e7470648ef7c7.zip
Fix 485583: NullPointerException in org.aspectj.ajdt.internal.compiler.ast.PointcutDeclaration
Diffstat (limited to 'tests/src/org/aspectj')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc189/Ajc189Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc189/ajc189.xml6
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc189/Ajc189Tests.java b/tests/src/org/aspectj/systemtest/ajc189/Ajc189Tests.java
index 138787853..a3a191a61 100644
--- a/tests/src/org/aspectj/systemtest/ajc189/Ajc189Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc189/Ajc189Tests.java
@@ -22,6 +22,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
*/
public class Ajc189Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+ public void testNPEAtAspectJ() throws Exception {
+ runTest("NPE at aspectj");
+ }
+
public void testLostBounds() throws Exception {
runTest("lost bounds");
// This type has I added via declare parents
diff --git a/tests/src/org/aspectj/systemtest/ajc189/ajc189.xml b/tests/src/org/aspectj/systemtest/ajc189/ajc189.xml
index 594f7f11d..586ff771e 100644
--- a/tests/src/org/aspectj/systemtest/ajc189/ajc189.xml
+++ b/tests/src/org/aspectj/systemtest/ajc189/ajc189.xml
@@ -2,6 +2,12 @@
<suite>
+<ajc-test dir="bugs189/485583" title="NPE at aspectj">
+ <compile files="Foo.aj Bar.aj" options="-1.8">
+ <message kind="error" text="The abstract pointcut deprecatedCode can only be defined in an aspect"/>
+ </compile>
+</ajc-test>
+
<ajc-test dir="bugs189/486612" title="lost bounds">
<compile files="Code.java Azpect.java" options="-1.8"/>
</ajc-test>