RFR: 8179918: EnumSet spliterator should report SORTED, ORDERED, NONNULL [v7]

Viktor Klang vklang at openjdk.org
Sun Dec 7 00:06:11 UTC 2025


On Sat, 6 Dec 2025 19:54:28 GMT, Joe Darcy <darcy at openjdk.org> wrote:

>> Patrick Strawderman has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Add coverage for other factory methods: noneOf, of, etc
>
> Hmm. Catching up on reviews, should the behavior change here get a CSR? More broader, should there be an implSpec change under a follow-up bug and CSR that requires this behavior?

@jddarcy Seems reasonable! Chasing down the super-implementation, [Set::spliterator()](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Set.html#spliterator()) states that overloads should report their characteristics (even if the documentation linked does seem to unnecessarily convolutedly state which characteristics the default implementation provides). I can open up a new Issue and handle the CSR-bits if @kilink doesn't mind?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/28568#issuecomment-3621388432


More information about the core-libs-dev mailing list