| Summary: | Failing integration build test | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | John Arthorne <john.arthorne> |
| Component: | Resources | Assignee: | Platform-Resources-Inbox <platform-resources-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | dj.houghton |
| Version: | 3.0 | ||
| Target Milestone: | 3.0 RC2 | ||
| Hardware: | PC | ||
| OS: | Windows 2000 | ||
| Whiteboard: | |||
|
Description
John Arthorne
InternalJob.compareTo, used to compare entries in job queues, was returning the difference between two longs cast as an integer. If the difference is greater than the largest possible integer, it was wrapping and returning a negative integer. This caused invalid sorting in the job queue. Old code: return (int) (((InternalJob) otherJob).startTime - startTime); New code: return ((InternalJob) otherJob).startTime >= startTime ? 1 : -1; CC DJ for fix approval. Sounds like a heck of a good change to me. I will make sure it gets into the 4pm build. |