Author: dbertoni
Date: Fri Jun 17 13:49:10 2005
New Revision: 191195

URL: http://svn.apache.org/viewcvs?rev=191195&view=rev
Log:
Fix for concurrency issue with deserialized schema grammars.

Modified:
    xerces/c/trunk/src/xercesc/validators/schema/ComplexTypeInfo.cpp

Modified: xerces/c/trunk/src/xercesc/validators/schema/ComplexTypeInfo.cpp
URL: 
http://svn.apache.org/viewcvs/xerces/c/trunk/src/xercesc/validators/schema/ComplexTypeInfo.cpp?rev=191195&r1=191194&r2=191195&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/validators/schema/ComplexTypeInfo.cpp (original)
+++ xerces/c/trunk/src/xercesc/validators/schema/ComplexTypeInfo.cpp Fri Jun 17 
13:49:10 2005
@@ -926,6 +926,14 @@
          fContentSpecOrgURI = 0;
          fContentSpecOrgURISize = 0;
          fUniqueURI = 0;
+
+         // Create the content model by calling getContentModel().  This
+         // will ensure the grammar can be used concurrently by multiple
+         // parsers.
+         // Don't bother to do check unique particle attribution, since
+         // this will already have been done when the grammar was first
+         // created (if full schema checking was enabled).
+         getContentModel(false);
     }
 }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to