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

25 行
427 B
Java

import java.io.IOException;
public class ExplicitConstructorThrows extends Base { //ERR: default constructor throws IOException
}
class Base {
Base() throws IOException { }
}
class Sub1 extends Base {
Sub1() {
super(); //ERR: throws IOException
}
}
class Sub2 extends Base {
Sub2(String s) {
this(); //ERR: throws IOException
}
Sub2() throws IOException {
super();
}
}