| Summary: | Error in ProgressStatistics.getRecentSpeed | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | John Arthorne <john.arthorne> | ||||||
| Component: | p2 | Assignee: | John Arthorne <john.arthorne> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | ||||||||
| Version: | 3.7 | ||||||||
| Target Milestone: | 3.7 M3 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
John Arthorne
Created attachment 179654 [details]
Log file
Created attachment 180060 [details]
Fix
This looks to me like a class library bug, but there is an easy enough workaround. Here is a snippet to reduce the failure:
TreeMap map = new TreeMap();
SortedMap headMap = map.headMap("String");
System.out.println(headMap.values());
This produces NoSuchElementException when running on IBM Java 6 SR 3, and I suspect on some Sun Java 6 versions as well. In newer Java 6 releases it doesn't produce a failure. In any case, a simple isEmpty() check will avoid the problem.
Fix released. |