cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r718439 - /cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/WSDLASTVisitor.java
Date Mon, 17 Nov 2008 23:33:09 GMT
Author: bimargulies
Date: Mon Nov 17 15:33:09 2008
New Revision: 718439

URL: http://svn.apache.org/viewvc?rev=718439&view=rev
Log:
Fixing an XmlSchema bug uncovered an overenthusiastic workaround for it. Make the code adapt.

Modified:
    cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/WSDLASTVisitor.java

Modified: cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/WSDLASTVisitor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/WSDLASTVisitor.java?rev=718439&r1=718438&r2=718439&view=diff
==============================================================================
--- cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/WSDLASTVisitor.java
(original)
+++ cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/WSDLASTVisitor.java
Mon Nov 17 15:33:09 2008
@@ -436,7 +436,14 @@
         return def;
     }
     
+    /**
+     * Older versions of XmlSchema forgot to include anyType in the schema.
+     */
     private void addAnyType() {
+        if (schemas.getTypeByQName(Constants.XSD_ANYTYPE) != null) {
+            return;
+        }
+
         XmlSchema[] schemaList = schemas.getXmlSchemas();
         if (schemaList != null) {
             for (int i = 0; i < schemaList.length; i++) {



Mime
View raw message