Community
Participate
Working Groups
In the case of a bug like bug 527839, we're calling a Query with LinkedHashSets. The java implementation of LinkedHashSet doesn't care for element ordering when checking for equality. Thus, OrderedSet{1, 2, 3} is equal to OrderedSet{3, 2, 1} Calling a query with these two distincts set will produce the same result since the QueryCache will be triggered on second invocation even though the list aren't really identical. We need to implement a "smarter" equality test that considers order for the QueryCache.