On Fri, 7 Nov 2025 16:01:45 GMT, Kevin Rushforth <[email protected]> wrote:

> I only raised the question because whenever I see an ordinary HashSet being 
> iterated, I always ask myself whether the iteration order matters.

I agree 100%, especially since bugs in that case are really hard to find and 
debug.

I remember from my personal experience tests that sometimes failed, because the 
test did call `iterator().next()` on a Collection, which was a HashSet.😄 

I just saw that I forgot to quote Andy on my previous answer. Just to emphasize 
this: I don't see how the implementation could be changed in such a way that 
the order would matter in the future.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1964#discussion_r2505367222

Reply via email to