From: Wolfgang M. M. <wol...@us...> - 2004-03-25 12:53:10
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/xquery/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22694/src/org/exist/xquery/functions Modified Files: FunDoc.java Log Message: The cached root element of the document should be cleared before reusing a compiled expression, otherwise the node might be out-of-sync. Index: FunDoc.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xquery/functions/FunDoc.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** FunDoc.java 29 Jan 2004 15:06:41 -0000 1.1 --- FunDoc.java 25 Mar 2004 12:42:19 -0000 1.2 *************** *** 105,107 **** --- 105,114 ---- } + /* (non-Javadoc) + * @see org.exist.xquery.PathExpr#resetState() + */ + public void resetState() { + cachedNode = null; + cachedPath = null; + } } |