Index: modules/luni/src/test/api/common/tests/api/java/util/TreeMapTest.java =================================================================== --- modules/luni/src/test/api/common/tests/api/java/util/TreeMapTest.java (revision 599729) +++ modules/luni/src/test/api/common/tests/api/java/util/TreeMapTest.java (working copy) @@ -74,6 +74,9 @@ if (null == o1) { return -1; } + if (null == o2) { // comparator should be symmetric + return 1; + } return o1.compareTo(o2); } } @@ -327,6 +330,48 @@ treemap = new TreeMap(); SortedMap headMap = treemap.headMap("100"); headMap.headMap("100"); + + SortedMap intMap,sub; + int size = 16; + intMap = new TreeMap(); + for(int i=0; i(); + for(int i=0; i intMap,sub; + int size = 16; + intMap = new TreeMap(); + for(int i=0; i(); + for(int i=0; i