aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/ExceptionsOnInters.java
blob: 58bb5ef5894493b5e2f0ae7583ca465fb3f9999e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// from Bug 29106 

public class ExceptionsOnInters {
  public static void main(String args[]) {
    try {
      ExceptionsOnInters.bomb();
    } catch (BombException e) {
      System.err.println(e);
    }
  }
}

aspect Bomb {
  public static void ExceptionsOnInters.bomb() throws BombException {
    throw new BombException("KABOOM");
  }
}

class BombException extends Exception {
  public BombException(String message) {
    super(message);
  }
}