From: Wolfgang M. <wol...@ex...> - 2005-10-26 15:43:16
|
> org.xmldb.api.base.XMLDBException: java.lang.RuntimeException: cannot > compare NodeProxy with org.exist.memtree.ElementImpl Sorry for that. I changed NodeProxy.compareTo some time ago because I thought it should be forbidden to compare NodeProxy to anything else than a NodeProxy. I have been mistaken: it is possible to mix different node implementation types in the same sequence. NodeProxy.compareTo should thus be changed back to its old implementation, i.e.: public int compareTo(Object other) { if(!(other instanceof NodeProxy)) return 1; return compareTo((NodeProxy) other); } I attach a patch. Wolfgang |