(int i)
| 39 | } |
| 40 | |
| 41 | void throwCaught(int i) { |
| 42 | try { |
| 43 | int x = i * i; |
| 44 | int[] a = new int[x]; |
| 45 | if (a.length > 0) { |
| 46 | throw new IndexOutOfBoundsException(); |
| 47 | } else if (a.length > 10) { |
| 48 | throw new IllegalStateException(); |
| 49 | } else { |
| 50 | throw new ArithmeticException(); |
| 51 | } |
| 52 | } catch (IllegalStateException e) { |
| 53 | } catch (ArithmeticException e) { |
| 54 | } catch (Exception e) { |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | void throwUncaught(int i) |
| 59 | throws ArithmeticException, IllegalStateException { |
nothing calls this directly
no outgoing calls
no test coverage detected