cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r590331 - in /incubator/cxf/branches/2.0.x-fixes: ./ rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java
Date Tue, 30 Oct 2007 19:38:49 GMT
Author: dkulp
Date: Tue Oct 30 12:38:48 2007
New Revision: 590331

URL: http://svn.apache.org/viewvc?rev=590331&view=rev
Log:
Merged revisions 590297 via svnmerge from 
https://svn.apache.org/repos/asf/incubator/cxf/trunk

........
  r590297 | dkulp | 2007-10-30 15:34:38 -0400 (Tue, 30 Oct 2007) | 2 lines
  
  Another update for grabbing classes for JAXB context
........

Modified:
    incubator/cxf/branches/2.0.x-fixes/   (props changed)
    incubator/cxf/branches/2.0.x-fixes/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java

Propchange: incubator/cxf/branches/2.0.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: incubator/cxf/branches/2.0.x-fixes/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java
URL: http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java?rev=590331&r1=590330&r2=590331&view=diff
==============================================================================
--- incubator/cxf/branches/2.0.x-fixes/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java
(original)
+++ incubator/cxf/branches/2.0.x-fixes/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java
Tue Oct 30 12:38:48 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