You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlbeans.apache.org by ce...@apache.org on 2005/11/01 22:49:06 UTC

svn commit: r330131 - in /xmlbeans/trunk: external/lib/oldxbean.jar src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java

Author: cezar
Date: Tue Nov  1 13:48:46 2005
New Revision: 330131

URL: http://svn.apache.org/viewcvs?rev=330131&view=rev
Log:
Fix to avoid syncronization on imutable STS xmlobjects, durring multithreaded validation.

checkintest passes


Modified:
    xmlbeans/trunk/external/lib/oldxbean.jar
    xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java

Modified: xmlbeans/trunk/external/lib/oldxbean.jar
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/external/lib/oldxbean.jar?rev=330131&r1=330130&r2=330131&view=diff
==============================================================================
Binary files - no diff available.

Modified: xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java?rev=330131&r1=330130&r2=330131&view=diff
==============================================================================
--- xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java (original)
+++ xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java Tue Nov  1 13:48:46 2005
@@ -1467,6 +1467,12 @@
     // various
     public String stringValue()
     {
+        if (isImmutable())
+        {
+            if ((_flags & FLAG_NIL) != 0)
+                return null;
+            return compute_text(null);
+        }
         // Since complex-content types don't have a "natural" string value, we
         // emit the deeply concatenated, tag-removed content of the tag.
         synchronized (monitor())



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org