org.aspectj/tests/bugs/ExceptionsOnInters.java

24 рядки
451 B
Java

2003-01-08 00:19:58 +01:00
// 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);
}
}