assertTrue(Arrays.equals(new short[0], ret));
ret = Arrays.copyOf(emptyArray, 5);
assertEquals(5, ret.length);
for (; i < ret.length; i++) {
assertEquals((short) 0, ret[i]);
<BUG>}
}</BUG>
public void testCopyOfObject() {
Object obj1 = new Object();
Object obj2 = new Object();

assertTrue(Arrays.equals(new short[0], ret));
ret = Arrays.copyOf(emptyArray, 5);
assertEquals(5, ret.length);
for (; i < ret.length; i++) {
assertEquals((short) 0, ret[i]);
}
ret = Arrays.copyOf(new short[] {1, 2}, 3);
assertTrue(Arrays.equals(new short[] {1, 2, 0}, ret));
}
public void testCopyOfObject() {
Object obj1 = new Object();
Object obj2 = new Object();
