Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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. }