You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by bi...@apache.org on 2009/03/06 00:57:54 UTC

svn commit: r750689 - /cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/BeanType.java

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) {