diff options
author | wisberg <wisberg> | 2003-03-12 20:46:21 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2003-03-12 20:46:21 +0000 |
commit | c6d8c34761c20477a3cf6fb62d8523fd476d85df (patch) | |
tree | 9de960c2240a636e68ceb3ffee0aff8a2318cbe8 | |
parent | db37189cebba13a30b7ccdabe70565caa7506c00 (diff) | |
download | aspectj-c6d8c34761c20477a3cf6fb62d8523fd476d85df.tar.gz aspectj-c6d8c34761c20477a3cf6fb62d8523fd476d85df.zip |
@testcase type not imported in around advice
-rw-r--r-- | tests/ajcTestsFailing.xml | 7 | ||||
-rw-r--r-- | tests/errors/TypeNotImportedInAroundCE.java | 12 |
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 + } +} |