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

duke duke at openjdk.org
Fri Dec 5 16:53:38 UTC 2025


On Thu, 4 Dec 2025 22:37:34 GMT, Patrick Strawderman <duke at openjdk.org> wrote:

>> I noticed that the Spliterator for EnumSet does not report SORTED, ORDERED, or NONNULL characteristics, all of which are inherent to API of EnumSet. I found there's an existing ticket for this as well.
>> 
>> The ticket also mentions optimized `forEach`, etc, which I presume means avoiding the default implementation that uses the iterator and just iterating over the bitset directly; I can add that here or perhaps in a follow up if it's still deemed worthwhile.
>
> 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

@kilink 
Your change (at version adb01836993565721192904bf2de558a561d3233) is now ready to be sponsored by a Committer.

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

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


More information about the core-libs-dev mailing list