cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r750689 - /cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/BeanType.java
Date Thu, 05 Mar 2009 23:57:54 GMT
Author: bimargulies
Date: Thu Mar  5 23:57:54 2009
New Revision: 750689

URL: http://svn.apache.org/viewvc?rev=750689&view=rev
Log:
CXF-2088

Modified:
    cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/BeanType.java

Modified: cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/BeanType.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/BeanType.java?rev=750689&r1=750688&r2=750689&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/BeanType.java
(original)
+++ cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/BeanType.java
Thu Mar  5 23:57:54 2009
@@ -332,10 +332,6 @@
             writer.writeXsiType(getSchemaType());
         }
 
-        /*
-         * TODO: Replace this method with one split into two pieces so that we can front-load
the attributes
-         * and traverse down the list of super classes.
-         */
         for (QName name : inf.getAttributes()) {
 
             Object value = readProperty(object, name);
@@ -354,6 +350,13 @@
                 cwriter.close();
             }
         }
+        
+        if (inf.isExtension()) {
+            Type t = getSuperType();
+            if (t != null) {
+                t.writeObject(object, writer, context);
+            }
+        }
 
         for (QName name : inf.getElements()) {
 
@@ -384,12 +387,7 @@
                 cwriter.close();
             }
         }
-        if (inf.isExtension()) {
-            Type t = getSuperType();
-            if (t != null) {
-                t.writeObject(object, writer, context);
-            }
-        }
+       
     }
 
     protected void writeElement(QName name, Object value, Type type, MessageWriter writer,
Context context) {



Mime
View raw message