Compile error with TreeSet

Edgar Villanueva edgar@villanueva.com
Wed Feb 14 19:21:00 GMT 2001


ojects/gcc/build/i686-pc-linux-gnu/libjava java/util/TreeSet.java
java/util/TreeSet.java: In class `java.util.TreeSet':
java/util/TreeSet.java: In method `java.util.TreeSet.clone()':
java/util/TreeSet.java:163: Can't access protected method
`java.lang.Object.clone' from `java.util.TreeSet'.
        copy.map = (TreeMap) map.clone();
                                   ^
1 error
ma



More information about the Java mailing list