Index: java/util/TreeMap.java =================================================================== RCS file: /cvs/gcc/gcc/libjava/java/util/TreeMap.java,v retrieving revision 1.11 diff -u -r1.11 TreeMap.java --- java/util/TreeMap.java 23 Apr 2004 06:36:05 -0000 1.11 +++ java/util/TreeMap.java 21 Sep 2004 14:01:33 -0000 @@ -130,7 +130,7 @@ /** * The root node of this TreeMap. */ - private transient Node root = nil; + private transient Node root; /** * The size of this TreeMap. Package visible for use by nested classes. @@ -213,6 +213,7 @@ public TreeMap(Comparator c) { comparator = c; + fabricateTree(0); } /** @@ -851,7 +852,11 @@ private void fabricateTree(final int count) { if (count == 0) - return; + { + root = nil; + size = 0; + return; + } // We color every row of nodes black, except for the overflow nodes. // I believe that this is the optimal arrangement. We construct the tree