minchau 2003/10/16 08:20:54
Modified: java/src/org/apache/xml/serializer ToStream.java
Log:
PR: bugzilla 23113
Submitted by: Brian Minchau
Reviewed by: Brian Minchau
The reset() in ToStream did not reset a few fields to the original values
that were obtained via " new ToStream() ". The applied patch fixes that.
Revision Changes Path
1.24 +8 -2
xml-xalan/java/src/org/apache/xml/serializer/ToStream.java
Index: ToStream.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xml/serializer/ToStream.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- ToStream.java 6 Oct 2003 14:33:07 -0000 1.23
+++ ToStream.java 16 Oct 2003 15:20:54 -0000 1.24
@@ -2916,11 +2916,17 @@
{
this.m_canConvertMeth = null;
this.m_cdataStartCalled = false;
- this.m_charInfo = null; // ??
+ /* The stream is being reset. It is one of
+ * ToXMLStream, ToHTMLStream ... and this type can't be changed
+ * so neither should m_charInfo which is associated with the
+ * type of Stream. Just leave m_charInfo as-is for the next re-use.
+ *
+ */
+ // this.m_charInfo = null; // don't set to null
this.m_charToByteConverter = null;
this.m_disableOutputEscapingStates.clear();
- this.m_escaping = false;
+ this.m_escaping = true;
// Leave m_format alone for now - bjm
// this.m_format = null;
this.m_inDoctype = false;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]