Stuart Marks

Results 20 comments of Stuart Marks

Sorry David I should have clarified this a bit. The changes currently in this draft PR are merely what occurred to Alex and me while we were working on JLS...

Discussion of the changes in this PR are taking place in the bug report: https://bugs.openjdk.org/browse/JDK-8290036

OK, I finally got back to this. I incorporated most suggested edits. Please re-review.

CSR drafted, please review: https://bugs.openjdk.org/browse/JDK-8294817

I guess I got into a race with the bot and lost. Retrying. /integrate

See my comments in [JDK-8218282](https://bugs.openjdk.org/browse/JDK-8218282). While updating the one-arg Collections::shuffle to use ThreadLocalRandom seems obvious, it's not clear to me that we actually want to do that.

I'm having difficulty imagining how `SequencedCollection::replaceAll` could work or be useful. Obviously it's on List already. It could be added to Deque, because like List, its elements are explicitly positioned...

OK. I think the meta-requirements are that the behavior be well-specified, implemented correctly, have tests for all the edge cases, and ideally also have defensible behavior. (I was going to...