mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-14 02:10:40 +02:00
23 lines
480 B
Java
23 lines
480 B
Java
import org.aspectj.testing.Tester;
|
|
|
|
public class InitializerWithThrow {
|
|
public static void main(String[] args) {
|
|
try {
|
|
new InitializerWithThrow();
|
|
Tester.check(false, "no exception");
|
|
} catch (TestException te) {
|
|
}
|
|
}
|
|
|
|
static class TestException extends Exception {}
|
|
|
|
int i = ini();
|
|
|
|
static int ini() throws TestException {
|
|
throw new TestException();
|
|
}
|
|
|
|
InitializerWithThrow() throws TestException {}
|
|
|
|
}
|