| Summary: | Eclipse auto test: testSortMultipleCategory expected:<a[1]> but was:<a[3]> in solaris10 with jdk7-b96 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Tao Zhang <taozhang816> | ||||
| Component: | User Assistance | Assignee: | Chris Goldthorpe <cgold> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | cgold | ||||
| Version: | 3.6 | ||||||
| Target Milestone: | 3.7 M6 | ||||||
| Hardware: | Other | ||||||
| OS: | other | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Tao Zhang
Moving to UA I believe that the reason why this test is failing is because the sort code from jdk7 is using a different algorithm and contexts which compare as equal end up in a non deterministic order. I will look into why the result of the comparing two different contexts is equality in some cases. Are you using a Sun ( Oracle ) JRE? Created attachment 189431 [details]
Patch
The algorithm was making too many assumptions about the sort - in particular it was assuming that compare() would be called on the elements in the order in which they appear in the array. The recoded algorithm only assumes that the sort is stable.
Patch committed to HEAD. |