summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/ajcTestsFailing.xml7
-rw-r--r--tests/errors/TypeNotImportedInAroundCE.java12
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/ajcTestsFailing.xml b/tests/ajcTestsFailing.xml
index 578f0aa75..19a8c048f 100644
--- a/tests/ajcTestsFailing.xml
+++ b/tests/ajcTestsFailing.xml
@@ -49,4 +49,11 @@
<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
index 000000000..01e3f0150
--- /dev/null
+++ b/tests/errors/TypeNotImportedInAroundCE.java
@@ -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
+ }
+}