framework/tests/all-systems/UnionTypes.java
raw| 1 | // Test case for Issue 145 |
| 2 | // https://github.com/typetools/checker-framework/issues/145 |
| 3 | class UnionTypes { |
| 4 | public void TryCatch() { |
| 5 | try { |
| 6 | int[] arr = new int[10]; |
| 7 | arr[4] = 1; |
| 8 | } catch (ArrayIndexOutOfBoundsException | StringIndexOutOfBoundsException exc) { |
| 9 | Exception e = exc; |
| 10 | } |
| 11 | } |
| 12 | } |