RFR: 8356486: ReverseOrderListView should override reversed() to return `base`
Per Minborg
pminborg at openjdk.org
Fri May 9 07:05:56 UTC 2025
On Fri, 9 May 2025 06:24:50 GMT, Per Minborg <pminborg at openjdk.org> wrote:
>> This should already be covered by the testDoubleReverse() test in test/jdk/java/util/SequencedCollection/Basic.java.
>
> There are some new collections (such as StableList) that are not covered in Basic. But maybe they should have their separate tests?
`UnmodifiableSequencedCollection` double-reversed is not an identity function. But at least, it does not nest, as it returns a new USC with the underlying collection reversed.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25120#discussion_r2081060529
More information about the core-libs-dev
mailing list