cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r548971 - /incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java
Date Wed, 20 Jun 2007 08:05:24 GMT
Author: ffang
Date: Wed Jun 20 01:05:23 2007
New Revision: 548971

URL: http://svn.apache.org/viewvc?view=rev&rev=548971
Log:
fix cruisecontrol failure

Modified:
    incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java

Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java?view=diff&rev=548971&r1=548970&r2=548971
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java
(original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java
Wed Jun 20 01:05:23 2007
@@ -241,6 +241,12 @@
                 && (Modifier.isAbstract(clazz.getModifiers()) 
                 || Modifier.isInterface(clazz.getModifiers())))) {
                 unmarshalWithClass = false;
+            } 
+            
+            if (clazz.getName().equals("javax.xml.datatype.XMLGregorianCalendar")
+                    || clazz.getName().equals("javax.xml.datatype.Duration")) {
+                //special treat two jaxb defined built-in abstract types
+                unmarshalWithClass = true;
             }
             if (source instanceof Node) {
                 obj = unmarshalWithClass ? u.unmarshal((Node)source, clazz) : u.unmarshal((Node)source);



Mime
View raw message