You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ThrowsClause.java 250B

1234567891011121314
  1. class C {
  2. public void m() throws Integer { } //ERROR Integer is not a Throwable
  3. public C() throws C { } //ERROR C is not a Throwable
  4. }
  5. class Sup {
  6. public void m() {}
  7. }
  8. class Sub extends Sup {
  9. public void m() throws Exception {}
  10. }