mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-13 15:45:38 +02:00
@testcase type not imported in around advice
This commit is contained in:
parent
db37189ceb
commit
c6d8c34761
@ -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>
|
||||
|
12
tests/errors/TypeNotImportedInAroundCE.java
Normal file
12
tests/errors/TypeNotImportedInAroundCE.java
Normal file
@ -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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user