]> source.dussan.org Git - aspectj.git/commitdiff
tests for pr76374 - missing type warning on declare parents
authoracolyer <acolyer>
Wed, 21 Sep 2005 16:51:15 +0000 (16:51 +0000)
committeracolyer <acolyer>
Wed, 21 Sep 2005 16:51:15 +0000 (16:51 +0000)
tests/bugs150/Pr76374.aj [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
tests/src/org/aspectj/systemtest/ajc150/ajc150.xml

diff --git a/tests/bugs150/Pr76374.aj b/tests/bugs150/Pr76374.aj
new file mode 100644 (file)
index 0000000..57dc4b8
--- /dev/null
@@ -0,0 +1,5 @@
+public aspect Pr76374 {
+       
+       declare parents : MissingType$InnerMissing implements Runnable;
+       
+}
\ No newline at end of file
index 373e21f28ba6456e5e83d5c50f1d4ff65f720886..c1d78b21b6d40ba6cbb15e13c371ab794649f080 100644 (file)
@@ -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.....
   
index f0bbef6a96decc2d245292862711ed538720eaaa..de0c97a6bd383bd8ba9807027e41dc878dd4de65 100644 (file)
         <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>
+    
     <!-- ============================================================================ -->
     <!-- ============================================================================ -->