miroir de
https://github.com/eclipse-aspectj/aspectj.git
synchronisé 2024-08-26 05:57:44 +02:00
25 lignes
427 B
Java
25 lignes
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();
|
|
}
|
|
}
|