diff options
author | acolyer <acolyer> | 2005-09-21 16:51:15 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-09-21 16:51:15 +0000 |
commit | ca9c1f7c57b64473042f3100a4159650da085111 (patch) | |
tree | 0f48ddc345510fcda706f73c604f61619d7bd399 /tests | |
parent | 0e1bb192d429beba6a2a8f9b2ab8218f85673405 (diff) | |
download | aspectj-ca9c1f7c57b64473042f3100a4159650da085111.tar.gz aspectj-ca9c1f7c57b64473042f3100a4159650da085111.zip |
tests for pr76374 - missing type warning on declare parents
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs150/Pr76374.aj | 5 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | 6 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 7 |
3 files changed, 17 insertions, 1 deletions
diff --git a/tests/bugs150/Pr76374.aj b/tests/bugs150/Pr76374.aj new file mode 100644 index 000000000..57dc4b860 --- /dev/null +++ b/tests/bugs150/Pr76374.aj @@ -0,0 +1,5 @@ +public aspect Pr76374 { + + declare parents : MissingType$InnerMissing implements Runnable; + +}
\ No newline at end of file diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java index 373e21f28..c1d78b21b 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java @@ -444,7 +444,11 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("@annotation binding with around advice"); } - public void testUnableToBuildShadows_pr109728() { runTest("Unable to build shadows");} + public void testUnableToBuildShadows_pr109728() { runTest("Unable to build shadows");} + + public void testMessageOnMissingTypeInDecP() { + runTest("declare parents on a missing type"); + } // helper methods..... diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml index f0bbef6a9..de0c97a6b 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -595,6 +595,13 @@ <compile files="AnnotationBinding.aj" options="-1.5"/> <run class="AnnotationBinding"/> </ajc-test> + + <ajc-test dir="bugs150" title="declare parents on a missing type"> + <compile files="Pr76374.aj" options="-1.5"> + <message kind="warning" line="3" text="no match for this type name"/> + </compile> + </ajc-test> + <!-- ============================================================================ --> <!-- ============================================================================ --> |