cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r814859 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/AbstractJAXBProvider.java
Date Mon, 14 Sep 2009 21:20:06 GMT
Author: sergeyb
Date: Mon Sep 14 21:20:05 2009
New Revision: 814859

URL: http://svn.apache.org/viewvc?rev=814859&view=rev
Log:
JAXRS : fixing failing JSONProvider tests on jdk 1.6

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/AbstractJAXBProvider.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/AbstractJAXBProvider.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/AbstractJAXBProvider.java?rev=814859&r1=814858&r2=814859&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/AbstractJAXBProvider.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/AbstractJAXBProvider.java
Mon Sep 14 21:20:05 2009
@@ -323,7 +323,7 @@
     }
     
     public JAXBContext getPackageContext(Class<?> type) {
-        if (type == null) {
+        if (type == null || type == JAXBElement.class) {
             return null;
         }
         synchronized (packageContexts) {



Mime
View raw message