mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-13 15:45:38 +02:00
26 lines
378 B
Java
26 lines
378 B
Java
|
import org.aspectj.testing.Tester;
|
||
|
|
||
|
import java.io.IOException;
|
||
|
|
||
|
public class ExceptionsCP {
|
||
|
public static void main(String[] args) {
|
||
|
C c = new C();
|
||
|
try {
|
||
|
c.foo();
|
||
|
} catch (IOException io) {}
|
||
|
c.bar();
|
||
|
}
|
||
|
}
|
||
|
class Root {
|
||
|
public void bar() {}
|
||
|
}
|
||
|
|
||
|
class C extends Root {
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
aspect A {
|
||
|
public void C.foo() throws IOException { }
|
||
|
}
|