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.

FourA.java 416B

123456789101112131415161718192021
  1. public class FourA {
  2. public static void main(String []argv) {
  3. new FourA().run();
  4. }
  5. public void run() {
  6. try {
  7. System.out.println("run() running");
  8. throw new IllegalStateException();
  9. } catch (Throwable t) {
  10. System.out.println("caught something");
  11. }
  12. }
  13. }
  14. aspect X {
  15. before(Throwable t): handler(Throwable) && args(t) {
  16. System.out.println(thisEnclosingJoinPointStaticPart.getSignature());
  17. }
  18. }