Description
Given a test case [1], RI passes while HY fails.
The java spec specifies that java.util.Collections.wap(List<?> list, int i, int j) should throw IndexOutOfBoundsException when either i or j is out of range.
[1] Test Case:
public void test_Collections_swap_IndexOutOfBoundsException() {
try
catch (IndexOutOfBoundsException e) {
// Expected
}
}