cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r806638 - /cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/ParticleInfo.java
Date Fri, 21 Aug 2009 16:48:50 GMT
Author: bimargulies
Date: Fri Aug 21 16:48:50 2009
New Revision: 806638

URL: http://svn.apache.org/viewvc?rev=806638&view=rev
Log:
Plan B for CXF-2400: no type at all --> anyType.

Modified:
    cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/ParticleInfo.java

Modified: cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/ParticleInfo.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/ParticleInfo.java?rev=806638&r1=806637&r2=806638&view=diff
==============================================================================
--- cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/ParticleInfo.java (original)
+++ cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/ParticleInfo.java Fri
Aug 21 16:48:50 2009
@@ -205,14 +205,8 @@
                                          ParticleInfo elementInfo) {
         elementInfo.type = element.getSchemaType();
         if (elementInfo.type == null) {
-            if (element.getSchemaTypeName() == null) {
-                Message message = new Message("ELEMENT_WITH_NO_TYPE", LOG, element.getName(),
-                                              XmlSchemaUtils
-                                              .cleanedUpSchemaSource(elementInfo.getParticle()));
-                LOG.severe(message.toString());
-                throw new UnsupportedConstruct(message);
-            }
-            if (element.getSchemaTypeName().equals(XmlSchemaConstants.ANY_TYPE_QNAME)) {
+            if (element.getSchemaTypeName() == null // no type at all -> anyType
+                || element.getSchemaTypeName().equals(XmlSchemaConstants.ANY_TYPE_QNAME))
{
                 elementInfo.anyType = true;
             } else {
                 elementInfo.type = schemaCollection.getTypeByQName(element.getSchemaTypeName());



Mime
View raw message