Christopher Smith created GROOVY-11070:
------------------------------------------

             Summary: ObjectArrayStaticTypesHelper does not handle negative 
indices
                 Key: GROOVY-11070
                 URL: https://issues.apache.org/jira/browse/GROOVY-11070
             Project: Groovy
          Issue Type: Bug
          Components: Static compilation
    Affects Versions: 4.0.12
            Reporter: Christopher Smith


In general, the index-based DGM {{getAt}} has the convenient feature of 
wrapping negative indices to "from-the-end"-based indices. However, the STC's 
implementation of {{getAt}} for arrays (in {{ObjectArrayStaticTypesHelper}} and 
the companion classes) does not do this an instead throws AIOOBE on a negative 
index. It should have consistent behavior with other indexing types.



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

Reply via email to