cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r590297 - /incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java
Date Tue, 30 Oct 2007 19:34:39 GMT
Author: dkulp
Date: Tue Oct 30 12:34:38 2007
New Revision: 590297

URL: http://svn.apache.org/viewvc?rev=590297&view=rev
Log:
Another update for grabbing classes for JAXB context

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

Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java?rev=590297&r1=590296&r2=590297&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java
(original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java
Tue Oct 30 12:34:38 2007
@@ -197,12 +197,15 @@
         XmlAccessType accessType = accessorType != null ? accessorType.value() : XmlAccessType.PUBLIC_MEMBER;
 
         if (accessType != XmlAccessType.PROPERTY) {   // only look for fields if we are instructed
to
-            Field fields[] = cls.getFields();
+            //fields are accessible even if not public, must look at the declared fields
+            //then walk to parents declared fields, etc...
+            Field fields[] = cls.getDeclaredFields(); 
             for (Field f : fields) {
                 if (isFieldAccepted(f, accessType)) {
                     addType(f.getGenericType());
                 }
             }
+            walkReferences(cls.getSuperclass());
         }
 
         if (accessType != XmlAccessType.FIELD) {   // only look for methods if we are instructed
to



Mime
View raw message