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 2007/10/18 00:40:44 UTC

svn commit: r585741 - /xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java

Author: cezar
Date: Wed Oct 17 15:40:42 2007
New Revision: 585741

URL: http://svn.apache.org/viewvc?rev=585741&view=rev
Log:
Fixing bug in XmlObject.selectPath() when result contained item that had a type with noType() true.

checkintest passes


Modified:
    xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java

Modified: xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java?rev=585741&r1=585740&r2=585741&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 Wed Oct 17 15:40:42 2007
@@ -415,10 +415,12 @@
         if (input.length == 0)
             return input;
         SchemaType commonType = input[0].schemaType();
-        if (commonType.equals(XmlObject.type))
+        if (commonType.equals(XmlObject.type) || commonType.isNoType())
             return input;
         for (int i = 1; i < input.length; i++)
         {
+            if (input[i].schemaType().isNoType())
+                return input;
             commonType = commonType.getCommonBaseType(input[i].schemaType());
             if (commonType.equals(XmlObject.type))
                 return input;



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