Stuart Marks
Stuart Marks
@bridgekeeper Are you drunk?
Sorry for the delay, I'm still totally backlogged on other stuff. I can't commit to get this into JDK 23.
Please see the analysis I just added to the bug report: https://bugs.openjdk.org/browse/JDK-8328821?focusedId=14688968&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14688968
@szegedi Oh interesting catch. Looks like a reasonable optimization. Is this covered by a test, or should a new test be added? @JimLaskey The `List.sort` method was added in JDK...
Just to clarify, my comments about "sorting sublists is rare" is a response to "has this been there since day one?" from @JimLaskey, and it's not an argument against adding...
(Discussion mainly of historical interest.) @pavelrappo Correct, historically, `Collections.sort` would fail to sort `CopyOnWriteArrayList`. You have to go back to JDK 7 to see this. The sorting approach used by...