cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r922111 - /cxf/xjc-utils/trunk/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
Date Fri, 12 Mar 2010 01:42:45 GMT
Author: dkulp
Date: Fri Mar 12 01:42:44 2010
New Revision: 922111

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

Modified:
    cxf/xjc-utils/trunk/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java

Modified: cxf/xjc-utils/trunk/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
URL: http://svn.apache.org/viewvc/cxf/xjc-utils/trunk/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java?rev=922111&r1=922110&r2=922111&view=diff
==============================================================================
--- cxf/xjc-utils/trunk/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java (original)
+++ cxf/xjc-utils/trunk/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java Fri
Mar 12 01:42:44 2010
@@ -79,7 +79,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