diff options
author | Andy Clement <aclement@pivotal.io> | 2016-02-10 15:46:53 -0800 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2016-02-10 15:46:53 -0800 |
commit | b54540d9a4843a46d6c2a25f6d2e7470648ef7c7 (patch) | |
tree | 58794fe0d924374656569a115b078f05bc924ef3 /tests | |
parent | 4bee355d22f5dd4bb2120ca725f0c8b9eb904976 (diff) | |
download | aspectj-b54540d9a4843a46d6c2a25f6d2e7470648ef7c7.tar.gz aspectj-b54540d9a4843a46d6c2a25f6d2e7470648ef7c7.zip |
Fix 485583: NullPointerException in org.aspectj.ajdt.internal.compiler.ast.PointcutDeclaration
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs189/485583/Bar.aj | 8 | ||||
-rw-r--r-- | tests/bugs189/485583/Foo.aj | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc189/Ajc189Tests.java | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc189/ajc189.xml | 6 |
4 files changed, 22 insertions, 0 deletions
diff --git a/tests/bugs189/485583/Bar.aj b/tests/bugs189/485583/Bar.aj new file mode 100644 index 000000000..aa69e37f0 --- /dev/null +++ b/tests/bugs189/485583/Bar.aj @@ -0,0 +1,8 @@ +//import org.aspectj.lang.annotation.*; +// +//@SuppressLoggerWarning +@org.aspectj.lang.annotation.Aspect +public abstract class Bar { + public abstract pointcut applicationCode(); +} + diff --git a/tests/bugs189/485583/Foo.aj b/tests/bugs189/485583/Foo.aj new file mode 100644 index 000000000..3997385f7 --- /dev/null +++ b/tests/bugs189/485583/Foo.aj @@ -0,0 +1,4 @@ + +public abstract class Foo { + public abstract pointcut deprecatedCode(); +} 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> |