Summary: | states with same time stamps may appear in the wrong order | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Rafael Chaves <eclipse> |
Component: | Compare | Assignee: | Andre Weinand <andre_weinand> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | 3.1 M4 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Rafael Chaves
2004-11-24 12:30:32 EST
Verified we are behaving correctly. We return the states in the right order as spec'd. The problem comes from the fact that compare will try to sort the states (history items, actually) again (EditionSelectionDialog.internalSort), and the sorting algorithm used (quick sort) is not stable, potentially changing the order of states with the same modification time. Suggestion: you can use java.util.Arrays.sort(Object[], java.util.Comparator), which is guaranteed to be stable. fix released for N20041126 |