cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1072741 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/JAXRSClientFactoryBean.java
Date Sun, 20 Feb 2011 21:38:38 GMT
Author: sergeyb
Date: Sun Feb 20 21:38:38 2011
New Revision: 1072741

URL: http://svn.apache.org/viewvc?rev=1072741&view=rev
Log:
CXF-3350: Making sure the case where model specifies the concrete class and the user supplies
the interface to the proxy is covered

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/JAXRSClientFactoryBean.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/JAXRSClientFactoryBean.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/JAXRSClientFactoryBean.java?rev=1072741&r1=1072740&r2=1072741&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/JAXRSClientFactoryBean.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/JAXRSClientFactoryBean.java
Sun Feb 20 21:38:38 2011
@@ -240,7 +240,8 @@ public class JAXRSClientFactoryBean exte
             Endpoint ep = createEndpoint();
             if (getServiceClass() != null) {
                 for (ClassResourceInfo info : serviceFactory.getClassResourceInfo()) {
-                    if (info.getServiceClass().isAssignableFrom(getServiceClass())) {
+                    if (info.getServiceClass().isAssignableFrom(getServiceClass())
+                        || getServiceClass().isAssignableFrom(info.getServiceClass())) {
                         cri = info;
                         break;
                     }



Mime
View raw message