org.aspectj/tests/new/InitializerWithThrow.java
2002-12-16 18:51:06 +00:00

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 {}
}