mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-14 02:10:40 +02:00
22 lines
340 B
Java
22 lines
340 B
Java
import java.io.IOException;
|
|
|
|
class DeclareSoft2 {
|
|
public static void main(String[] x) {
|
|
foo();
|
|
}
|
|
|
|
static void foo() throws IOException {
|
|
throw new IOException();
|
|
}
|
|
|
|
}
|
|
|
|
aspect A {
|
|
|
|
void around(): call(void foo()) {
|
|
try { proceed(); }
|
|
catch (IOException e) {}
|
|
}
|
|
declare soft: IOException: call(void foo());
|
|
}
|