You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2002/10/21 16:30:42 UTC
cvs commit: xml-axis/java/src/org/apache/axis/encoding DeserializationContextImpl.java
dims 2002/10/21 07:30:42
Modified: java/src/org/apache/axis/encoding
DeserializationContextImpl.java
Log:
Cleanup lexical-handler (for re-use).
Revision Changes Path
1.66 +3 -0 xml-axis/java/src/org/apache/axis/encoding/DeserializationContextImpl.java
Index: DeserializationContextImpl.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/DeserializationContextImpl.java,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -r1.65 -r1.66
--- DeserializationContextImpl.java 8 Oct 2002 03:31:32 -0000 1.65
+++ DeserializationContextImpl.java 21 Oct 2002 14:30:41 -0000 1.66
@@ -235,6 +235,9 @@
parser.setProperty("http://xml.org/sax/properties/lexical-handler", this);
parser.parse(inputSource, this);
+ // cleanup - so that the parser can be reused.
+ parser.setProperty("http://xml.org/sax/properties/lexical-handler", null);
+
// only release the parser for reuse if there wasn't an
// error. While parsers should be reusable, don't trust
// parsers that died to clean up appropriately.