From: Wolfgang M. <wol...@gm...> - 2005-10-27 09:02:02
|
Hi, > > public int compareTo(Object other) { > > if(!(other instanceof NodeProxy)) > > return 1; > > return compareTo((NodeProxy) other); > > } > First all hunks were rejected, which I understand in two cases, since > the lines with + are already in the source: Maybe I created the patch from the wrong source (I have quite a lot of different versions of the code on my machine). It seems you applied the patch to the correct file. > So I edited the file by hand and tried to compile a .war file, which > failed. I assume this is the one error mentioned at the end: > > [javac] > /home/uli/cvs.exist/snapshot_2005-10-26/src/org/exist/dom/NodeProxy.java:= 1056: > incompatible types > [javac] found : int > [javac] required: org.exist.dom.NodeSet > [javac] return 1; > [javac] ^ Looks like you made the change in the wrong method. The method to be change= d is: public int compareTo(Object other) { if(!(other instanceof NodeProxy)) return 1; return compareTo((NodeProxy) other); } which used to start on line 186. It should look exactly as above. To make it simple, I attach my entire file. Wolfgang |