diff options
author | Tobias Thierer <tobiast@google.com> | 2016-08-19 21:10:36 +0100 |
---|---|---|
committer | Tobias Thierer <tobiast@google.com> | 2016-08-22 16:33:29 +0100 |
commit | c13c9eddc3f7eeb760fcd9032b85ef2767cc82ba (patch) | |
tree | e4f852775151790a068393c75d16617eea81a351 /annotations/generate_annotated_java_files.py | |
parent | d41476f64cc5d3827075e92dba11f6405eb8d8c1 (diff) |
Fix regression in Vector.listIterator.add() introduced in N.
AOSP commit 887ab3fe607c582e10e33b3d631401d7a791aaed touched Vector.Itr
to fix an app compability bug, but did not make a corresponding change
to Vector.ListItr which extends Vector.Itr. Specifically, ListItr.add()
does not account for the extra element in the hasNext() logic that it
inherits from the super class. This causes iteration to terminate
prematurely when an element was added via the ListIterator.
This CL fixes the regression by incrementing limit during ListItr.add().
Bug: 27430229
Bug: 30974375
Test: VectorTest
Test: 842 guava-testlib tests for Vector; coverage for Vector was
contributed to guava-testlib in http://cl/130778873
Change-Id: I1e2042ebfd78a4956791bd43d60db7d1dec8edf5
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions