diff options
author | Andy Clement <aclement@pivotal.io> | 2016-01-05 13:06:22 -0800 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2016-01-05 13:06:22 -0800 |
commit | d9029474077ebd405ec34d44913eed3051f2691e (patch) | |
tree | 7a6ff9cb209f4fbe15696e3ef31b11c32f0f5fe3 /tests | |
parent | 9b220fe52ad9bb117140692f7cf455d78a17be11 (diff) | |
download | aspectj-d9029474077ebd405ec34d44913eed3051f2691e.tar.gz aspectj-d9029474077ebd405ec34d44913eed3051f2691e.zip |
Fix 484941 - NPE AnnotationDiscoveryVisitor
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs188/484941/Test2.java | 10 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc188/Ajc188Tests.java | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc188/ajc188.xml | 4 |
3 files changed, 18 insertions, 0 deletions
diff --git a/tests/bugs188/484941/Test2.java b/tests/bugs188/484941/Test2.java new file mode 100644 index 000000000..fd2623575 --- /dev/null +++ b/tests/bugs188/484941/Test2.java @@ -0,0 +1,10 @@ +
+@ContextConfiguration
+public class Test2 {
+ static class ContextConfiguration {
+
+ }
+}
+
+@interface ContextConfiguration {
+}
diff --git a/tests/src/org/aspectj/systemtest/ajc188/Ajc188Tests.java b/tests/src/org/aspectj/systemtest/ajc188/Ajc188Tests.java index c2a994855..1a5f5a465 100644 --- a/tests/src/org/aspectj/systemtest/ajc188/Ajc188Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc188/Ajc188Tests.java @@ -21,6 +21,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase; */ public class Ajc188Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + public void testAnnotationDiscoveryNpe() throws Exception { + runTest("annotation discovery npe"); + } + public void testDefaultMethodsWithXnoInline() throws Exception { runTest("default methods 1"); } diff --git a/tests/src/org/aspectj/systemtest/ajc188/ajc188.xml b/tests/src/org/aspectj/systemtest/ajc188/ajc188.xml index 2e8a8b62f..a9844f79f 100644 --- a/tests/src/org/aspectj/systemtest/ajc188/ajc188.xml +++ b/tests/src/org/aspectj/systemtest/ajc188/ajc188.xml @@ -2,6 +2,10 @@ <suite> +<ajc-test dir="bugs188/484941" title="annotation discovery npe"> +<compile files="Test2.java" options="-1.8 -XnoInline"/> +</ajc-test> + <ajc-test dir="bugs188/defaultmethods" title="default methods 1"> <compile files="Code.java" options="-1.8 -XnoInline"/> <run class="Code"> |