Hi,

I'd like to contribute a fix for:


  JDK-8394792: removeAll/retainAll on reversed() views of
  ArrayList and ArrayDeque are quadratic


I see it is currently assigned to Stuart. Is anyone already
working on this, and would it be OK for me to take it?


Proposed approach (aligned with the bug description and with
ReverseOrderListView.removeIf already delegating to base):


  - ReverseOrderListView: removeAll/retainAll -> 
base.removeAll/retainAll
    (keep checkModifiable())
  - ReverseOrderDequeView: removeAll/retainAll -> base
  - ReverseOrderDequeView: add removeIf -> base.removeIf


I understand that contains/predicate evaluation order would
change from reverse to forward (unspecified), and that
unmodifiableList(x).reversed().removeAll(empty) would start
throwing UOE like the base list.


Separately: I am currently unable to complete OCA signup.
Creating an Oracle account on profile.oracle.com fails with
HTTP 403 (VPN off). Advice on how to proceed with OCA in
this situation would also be appreciated.


Happy to open a PR after confirmation, with tests covering
ArrayList/ArrayDeque and the unmodifiable edge case.


Thanks,
xiaozhang
GitHub: dijiabianchengguang

Reply via email to