You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2010/05/19 17:52:45 UTC

svn commit: r946238 - in /cxf/branches/2.2.x-fixes: ./ rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spi/ProviderImpl.java

Author: dkulp
Date: Wed May 19 15:52:45 2010
New Revision: 946238

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

........
  r946236 | dkulp | 2010-05-19 11:47:44 -0400 (Wed, 19 May 2010) | 1 line
  
  We only understand the "standard" features.
........

Modified:
    cxf/branches/2.2.x-fixes/   (props changed)
    cxf/branches/2.2.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spi/ProviderImpl.java

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

Modified: cxf/branches/2.2.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spi/ProviderImpl.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.2.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spi/ProviderImpl.java?rev=946238&r1=946237&r2=946238&view=diff
==============================================================================
--- cxf/branches/2.2.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spi/ProviderImpl.java (original)
+++ cxf/branches/2.2.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spi/ProviderImpl.java Wed May 19 15:52:45 2010
@@ -68,6 +68,11 @@ public class ProviderImpl extends javax.
                                                  Class serviceClass,
                                                  WebServiceFeature ... features) {
         Bus bus = BusFactory.getThreadDefaultBus();
+        for (WebServiceFeature f : features) {
+            if (!f.getClass().getName().startsWith("javax.xml.ws")) {
+                throw new WebServiceException("Unknown feature error: " + f.getClass().getName());
+            }
+        }
         return new ServiceImpl(bus, wsdlDocumentLocation,
                                serviceName, serviceClass, features);