You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Vladimir Sitnikov (Jira)" <ji...@apache.org> on 2020/09/03 20:22:00 UTC
[jira] [Created] (CALCITE-4227) ImmutableIntList#toArray(Integer[])
should support arguments larger than the collection itself
Vladimir Sitnikov created CALCITE-4227:
------------------------------------------
Summary: ImmutableIntList#toArray(Integer[]) should support arguments larger than the collection itself
Key: CALCITE-4227
URL: https://issues.apache.org/jira/browse/CALCITE-4227
Project: Calcite
Issue Type: Sub-task
Components: core
Affects Versions: 1.25.0
Environment: {code:java}
assertThat(
Arrays.toString(ImmutableIntList.of(1).toArray(new Integer[]{5,6,7})),
is("[1, null, 7]")
);
{code}
{noformat}
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)
{noformat}
Reporter: Vladimir Sitnikov
--
This message was sent by Atlassian Jira
(v8.3.4#803005)