cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1457107 - /cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java
Date Fri, 15 Mar 2013 20:45:02 GMT
Author: dkulp
Date: Fri Mar 15 20:45:02 2013
New Revision: 1457107

URL: http://svn.apache.org/r1457107
Log:
Don't add java.* and javax.* things to the context

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=1457107&r1=1457106&r2=1457107&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
Fri Mar 15 20:45:02 2013
@@ -272,6 +272,9 @@ class JAXBContextInitializer extends Ser
                 walkReferences(cls);
             }
             addClass(String.class);
+        } else if (cls.getName().startsWith("java.")
+            || cls.getName().startsWith("javax.")) {
+            return;
         } else {
             cls = JAXBUtils.getValidClass(cls);
             if (null != cls) {



Mime
View raw message