diff --git a/classpath/java/util/TreeSet.java b/classpath/java/util/TreeSet.java index e4e70a9507..a2eddfe22a 100644 --- a/classpath/java/util/TreeSet.java +++ b/classpath/java/util/TreeSet.java @@ -23,6 +23,15 @@ public class TreeSet extends AbstractSet implements Collection { size = 0; } + public TreeSet() { + set = new PersistentSet(new Comparator>() { + public int compare(Cell a, Cell b) { + return ((Comparable)a).compareTo(b); + } + }); + size = 0; + } + public Iterator iterator() { return new MyIterator(set.first()); }