-
Type:
Sub-task
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.25.0
-
Fix Version/s: 1.26.0
-
Component/s: core
-
Labels:None
-
Environment:
assertThat( Arrays.toString(ImmutableIntList.of(1).toArray(new Integer[]{5,6,7})), is("[1, null, 7]") );
java.lang.ArrayIndexOutOfBoundsException: 1 at org.apache.calcite.util.ImmutableIntList.toArray(ImmutableIntList.java:161) [0;1mat org.apache.calcite.util.UtilTest.testImmutableIntList(UtilTest.java:1127)
assertThat( Arrays.toString(ImmutableIntList.of(1).toArray( new Integer []{5,6,7})), is( "[1, null , 7]" ) ); java.lang.ArrayIndexOutOfBoundsException: 1 at org.apache.calcite.util.ImmutableIntList.toArray(ImmutableIntList.java:161) [0;1mat org.apache.calcite.util.UtilTest.testImmutableIntList(UtilTest.java:1127)