You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Vladimir Sitnikov (Jira)" <ji...@apache.org> on 2020/09/05 17:18:00 UTC
[jira] [Resolved] (CALCITE-4227)
ImmutableIntList#toArray(Integer[]) should support arguments larger than
the collection itself
[ https://issues.apache.org/jira/browse/CALCITE-4227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vladimir Sitnikov resolved CALCITE-4227.
----------------------------------------
Fix Version/s: 1.26.0
Resolution: Fixed
Fixed in https://github.com/apache/calcite/commit/ad164ededa78a4b5383e636006e41ed98409ba7b
> 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
> Priority: Major
> Fix For: 1.26.0
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)