]> source.dussan.org Git - aspectj.git/commitdiff
@testcase type not imported in around advice
authorwisberg <wisberg>
Wed, 12 Mar 2003 20:46:21 +0000 (20:46 +0000)
committerwisberg <wisberg>
Wed, 12 Mar 2003 20:46:21 +0000 (20:46 +0000)
tests/ajcTestsFailing.xml
tests/errors/TypeNotImportedInAroundCE.java [new file with mode: 0644]

index 578f0aa7529b915fa7d5a035359ffecab3d7a5ed..19a8c048f1c1a07ce7777c6186468d395f7face9 100644 (file)
         <run class="AspectInitError"/>
     </ajc-test>
 
+    <ajc-test dir="errors"  
+               title="type not imported in around advice">
+        <compile files="TypeNotImportedInAroundCE.java">
+               <message kind="error" line="10"/>
+        </compile>
+       </ajc-test>
+
 </suite>
diff --git a/tests/errors/TypeNotImportedInAroundCE.java b/tests/errors/TypeNotImportedInAroundCE.java
new file mode 100644 (file)
index 0000000..01e3f01
--- /dev/null
@@ -0,0 +1,12 @@
+
+
+
+class C { void m() {  } }
+
+
+/** @testcase type not imported in around advice */
+aspect A {
+    void around() : execution(void m()) {
+        Rectangle expected = null;      // CE 10
+    }
+}