On Tue, 15 Dec 2020 15:24:03 GMT, Andrey Turbanov
wrote:
>> There are few places in code where manual `while` loop is used with
>> `Iterator` to iterate over `Collection`.
>> Instead of manual `while` cycles it's preferred to use _enhanced-for_ cycle
>> instead: it's less verbose, makes code e
On Wed, 2 Dec 2020 19:23:28 GMT, Andrey Turbanov
wrote:
> There are few places in code where manual `while` loop is used with
> `Iterator` to iterate over `Collection`.
> Instead of manual `while` cycles it's preferred to use _enhanced-for_ cycle
> instead: it's less verbose, makes code easier
The fix is to reverse the order of acquisition to get dst before src so that
the call to GetArrayLength() comes first.
This also necessitates moving the RELEASE_ARRAYS() call on an error condition
to the new "2nd" block.
The new regression test passes on all platforms and all the other headless