cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r922112 - /cxf/branches/2.2.x-fixes/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
Date Fri, 12 Mar 2010 01:43:44 GMT
Author: dkulp
Date: Fri Mar 12 01:43:44 2010
New Revision: 922112

URL: http://svn.apache.org/viewvc?rev=922112&view=rev
Log:
[CXF-2707] Don't generate new abstract objects. 
Patch from Jan Arend Jansen applied.

Modified:
    cxf/branches/2.2.x-fixes/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java

Modified: cxf/branches/2.2.x-fixes/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.2.x-fixes/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java?rev=922112&r1=922111&r2=922112&view=diff
==============================================================================
--- cxf/branches/2.2.x-fixes/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
(original)
+++ cxf/branches/2.2.x-fixes/common/xjc/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
Fri Mar 12 01:43:44 2010
@@ -75,7 +75,8 @@ public class DefaultValuePlugin {
     private boolean containsDefaultValue(Outline outline, FieldOutline field) {
         ClassOutline fClass = null;
         for (ClassOutline classOutline : outline.getClasses()) {
-            if (classOutline.implClass == field.getRawType()) {
+            if (classOutline.implClass == field.getRawType() 
+                && !classOutline.implClass.isAbstract()) {
                 fClass = classOutline;
                 break;
             }



Mime
View raw message