aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs162/pr241847/CC.java
blob: 43dd3b6980a023f73b02d8033a688d5c05d83a13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
public class CC implements II {
   public void m1(String arg) {
   }

   public static void main(String [] args) throws Exception {
      try {
         new CC().m1(null);
         throw new Exception("(BAD) advice did not run");
      } catch (RuntimeException e) {
         System.out.println("(GOOD) advice ran and threw expected exception");
         e.printStackTrace(System.out);
      }
   }
}