sboag 01/06/26 18:07:50
Modified: java/src/org/apache/xml/dtm/ref DTMManagerDefault.java
Log:
If the reader == null, we need to ignore the this.m_incremental flag.
This is so we make sure we create a CoRoutineParser from the
TransformerImpl. Otherwise we'll not have a CoRoutineParser, and
we'll end up with wild racing threads... not a good thing.
This should hopefully fix Don's problems with the dita build, and
will probably also fix about a zillion problems with Cocoon when
running Xalan.
Revision Changes Path
1.11 +3 -2
xml-xalan/java/src/org/apache/xml/dtm/ref/DTMManagerDefault.java
Index: DTMManagerDefault.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xml/dtm/ref/DTMManagerDefault.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- DTMManagerDefault.java 2001/06/22 04:38:04 1.10
+++ DTMManagerDefault.java 2001/06/27 01:07:50 1.11
@@ -250,8 +250,9 @@
if (haveXercesParser)
incremental = true; // No matter what. %REVIEW%
-
- if (this.m_incremental && incremental)
+ // If the reader is null, but they still requested an incremental
build,
+ // then we still want to set up the CoRoutine stuff.
+ if (this.m_incremental && incremental || ((null == reader) ||
incremental))
{
// Create a CoroutineManager to manage the coordination between
the
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]