Community
Participate
Working Groups
Build: 4.1 M2 I found the following error in my log when starting this build: java.util.NoSuchElementException at java.util.TreeMap.firstKey(TreeMap.java:4251) at java.util.TreeMap$NavigableSubMap.values(TreeMap.java:3042) at org.eclipse.equinox.internal.p2.repository.ProgressStatistics.getRecentSpeed(ProgressStatistics.java:101) at org.eclipse.equinox.internal.p2.repository.ProgressStatistics.report(ProgressStatistics.java:126)
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.