1
0
Mirror von https://github.com/eclipse-aspectj/aspectj.git synchronisiert 2024-08-26 17:58:43 +02:00
org.aspectj/tests/new/DeclareSoft2.java
2002-12-16 18:51:06 +00:00

22 Zeilen
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());
}