org.aspectj/tests/new/UnterminatedDeclareErrorCE.java

12 lines
276 B
Java
Raw Normal View History

2002-12-16 19:51:06 +01:00
/** @testcase expect CE for unterminated declare error */
aspect UnterminatedDeclareErrorCE {
2002-12-30 20:14:37 +01:00
declare error : execution(void run()) : "error"
}// CE 5
2002-12-16 19:51:06 +01:00
class C {
// bug - get CE here if uncommented, but declare error unterminated
// public void run() { }
}