On Tue, Mar 24, 2015 at 10:41 AM, Majid Laali <
mjl...@gmail.com> wrote:
> I debuged the issue and find out what is the problem:
>
> both 'wolf' and 'pig' have the same mutual information and hence their order
> can be changed in sorting. However, I checked the code and see the instances
> are sorted by com.google.common.collect.Ordering.immutableSortedCopy and
> according to the javadoc this sort should be stable:
>
> "Unlike Sets.newTreeSet(Iterable), this method does not discard elements
> that are duplicates according to the comparator. The sort performed is
> stable, meaning that such elements will appear in the returned list in the
> same order they appeared in elements."
>
> In oder words, as the instances are sorted based on alphabetic order of
> their name (i.e. 'pig' appears before 'wolf'), 'pig' should appear before
> 'wolf'. Therefore, I believe the test should be changed accordingly.
>
> Can I create a patch and change the test with the above explanation?
Thanks for the debugging. Yes, please create a patch with the above
explanation. Please verify that it works with both Java 7 and Java 8
Added. Yeah, anything that's about running the test suite is probably