cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r648323 - in /incubator/cxf/trunk: parent/pom.xml rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
Date Tue, 15 Apr 2008 16:43:57 GMT
Author: dkulp
Date: Tue Apr 15 09:43:35 2008
New Revision: 648323

URL: http://svn.apache.org/viewvc?rev=648323&view=rev
Log:
[CXF-1528] Fix problems if there is a schema element that has no types defined in it directly.
 It just imports and enother schema.  JAXB creates a JPackage for it, but doesn't generate
anything in it.  
Update the spring2.5 profile to 2.5.3

Modified:
    incubator/cxf/trunk/parent/pom.xml
    incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java

Modified: incubator/cxf/trunk/parent/pom.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/parent/pom.xml?rev=648323&r1=648322&r2=648323&view=diff
==============================================================================
--- incubator/cxf/trunk/parent/pom.xml (original)
+++ incubator/cxf/trunk/parent/pom.xml Tue Apr 15 09:43:35 2008
@@ -1138,7 +1138,7 @@
         <profile>
             <id>spring2.5</id>
             <properties>
-                <spring.version>2.5.2</spring.version>
+                <spring.version>2.5.3</spring.version>
                 <spring.mock>spring-test</spring.mock>
             </properties>
         </profile>

Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java?rev=648323&r1=648322&r2=648323&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
(original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
Tue Apr 15 09:43:35 2008
@@ -175,9 +175,10 @@
         boolean firstnt = false;
 
         for (Iterator<JPackage> packages = codeModel.packages(); packages.hasNext();)
{
-            JPackage packadge = packages.next();
-            String name = packadge.name();
-            if ("org.w3._2001.xmlschema".equals(name)) {
+            JPackage jpackage = packages.next();
+            String name = jpackage.name();
+            if ("org.w3._2001.xmlschema".equals(name)
+                || !jpackage.classes().hasNext()) {
                 continue;
             }
             if (firstnt) {
@@ -185,7 +186,7 @@
             } else {
                 firstnt = true;
             }
-            sb.append(packadge.name());
+            sb.append(jpackage.name());
         }
         outputDebug(codeModel);
         



Mime
View raw message