paulk-asert opened a new pull request, #2753:
URL: https://github.com/apache/groovy/pull/2753

   …orted
   
   Both iterators read ahead from their delegate before next() returns 
(ToUniqueIterator prefetches the next unique element; DropRightIterator buffers 
num+1 elements), so delegating remove() to the underlying iterator removed the 
wrong, already-advanced-past element. Throw UnsupportedOperationException 
instead, matching the other lazy iterators (CollectManyIterator, 
InjectAllIterator, and TakeWhileIterator via GROOVY-12215). DropWhileIterator 
is unaffected (no steady-state prefetch).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to