cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r678559 - /cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java
Date Mon, 21 Jul 2008 20:49:36 GMT
Author: dkulp
Date: Mon Jul 21 13:49:36 2008
New Revision: 678559

URL: http://svn.apache.org/viewvc?rev=678559&view=rev
Log:
[CXF-1711] Grab parent types as well.

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

Modified: cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java?rev=678559&r1=678558&r2=678559&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java
(original)
+++ cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java
Mon Jul 21 13:49:36 2008
@@ -203,6 +203,12 @@
         } else {
             cls = JAXBUtils.getValidClass(cls);
             if (null != cls) {
+                if (cls.getSuperclass() != null) {
+                    //JAXB should do this, but it doesn't always.
+                    //in particular, older versions of jaxb don't
+                    addClass(cls.getSuperclass());
+                }
+                
                 if (cls.isInterface()) {
                     //interfaces cannot be added directly, however, they
                     //may have some interesting annoations we should consider



Mime
View raw message