[ 
https://issues.apache.org/jira/browse/IGNITE-12678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikolay Izhikov updated IGNITE-12678:
-------------------------------------
    Fix Version/s: 2.17

> GridLongList fails on add when created with explicit zero size
> --------------------------------------------------------------
>
>                 Key: IGNITE-12678
>                 URL: https://issues.apache.org/jira/browse/IGNITE-12678
>             Project: Ignite
>          Issue Type: Bug
>          Components: general
>            Reporter: Konstantin Orlov
>            Assignee: Nikolay Izhikov
>            Priority: Minor
>             Fix For: 2.17
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Currently it is possible to create GridLongList backed by empty array. But 
> when you try to add a new element to such list, exception 
> ArrayIndexOutOfBound will be thrown. It caused by lack of handling of corner 
> cases in add* methods: if there is no space to insert new element, old length 
> just doubled, but 0 * 2 is always 0.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to