cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r652127 - in /cxf/trunk/rt: core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java
Date Tue, 29 Apr 2008 21:10:44 GMT
Author: dkulp
Date: Tue Apr 29 14:10:44 2008
New Revision: 652127

URL: http://svn.apache.org/viewvc?rev=652127&view=rev
Log:
[CXF-1553] Fix problem of not setting namespace aware for all Stax parsers
Fix an issue with the ObjectFactory cache not actually working correctly

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java
    cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java?rev=652127&r1=652126&r2=652127&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/TunedDocumentLoader.java Tue
Apr 29 14:10:44 2008
@@ -85,6 +85,7 @@
         }
 
         try {
+            nsasaxParserFactory.setFeature("http://xml.org/sax/features/namespaces", true);

             nsasaxParserFactory.setFeature("http://xml.org/sax/features/namespace-prefixes",

                                            true);
         } catch (Exception e) {

Modified: cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java?rev=652127&r1=652126&r2=652127&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java (original)
+++ cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java Tue
Apr 29 14:10:44 2008
@@ -461,6 +461,8 @@
                         OBJECT_FACTORY_CACHE.put(objectFactoryClassName, 
                                                  new CachedClassOrNull(null));
                     }
+                } else {
+                    objectFactories.add(ofactory);                    
                 }
             }
         }



Mime
View raw message