org.aspectj/tests/errors/ThrowsClause.java

15 lines
250 B
Java
Raw Normal View History

2002-12-16 19:51:06 +01:00
class C {
public void m() throws Integer { } //ERROR Integer is not a Throwable
public C() throws C { } //ERROR C is not a Throwable
}
class Sup {
public void m() {}
}
class Sub extends Sup {
public void m() throws Exception {}
}