mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-14 14:11:27 +02:00
23 lines
385 B
Plaintext
23 lines
385 B
Plaintext
import java.io.IOException;
|
|
import org.aspectj.lang.SoftException;
|
|
|
|
public class VerifyError {
|
|
|
|
static void foo() throws IOException {
|
|
throw new IOException();
|
|
}
|
|
|
|
public static void main(String[] args) throws Exception{
|
|
try {
|
|
foo();
|
|
} catch (SoftException sEx) {
|
|
//
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
aspect Soften {
|
|
|
|
declare soft : IOException : call(* foo());
|
|
} |