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.

ExceptionsOnInters.java 451B

1234567891011121314151617181920212223
  1. // from Bug 29106
  2. public class ExceptionsOnInters {
  3. public static void main(String args[]) {
  4. try {
  5. ExceptionsOnInters.bomb();
  6. } catch (BombException e) {
  7. System.err.println(e);
  8. }
  9. }
  10. }
  11. aspect Bomb {
  12. public static void ExceptionsOnInters.bomb() throws BombException {
  13. throw new BombException("KABOOM");
  14. }
  15. }
  16. class BombException extends Exception {
  17. public BombException(String message) {
  18. super(message);
  19. }
  20. }