org.aspectj/tests/errors/ExplicitConstructorThrows.java

25 lines
427 B
Java
Raw Normal View History

2002-12-16 19:51:06 +01:00
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();
}
}