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/21 01:33:36 UTC

svn commit: r946820 - /cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceConfiguration.java

Author: dkulp
Date: Thu May 20 23:33:35 2010
New Revision: 946820

URL: http://svn.apache.org/viewvc?rev=946820&view=rev
Log:
Section 3.3 of JAX-WS spec states final and static methods are not
WebMethods unless the @WebMethod annotation specifically says they
should be.

Modified:
    cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceConfiguration.java

Modified: cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceConfiguration.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceConfiguration.java?rev=946820&r1=946819&r2=946820&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceConfiguration.java (original)
+++ cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceConfiguration.java Thu May 20 23:33:35 2010
@@ -21,6 +21,7 @@ package org.apache.cxf.jaxws.support;
 
 import java.lang.annotation.Annotation;
 import java.lang.reflect.Method;
+import java.lang.reflect.Modifier;
 import java.lang.reflect.ParameterizedType;
 import java.lang.reflect.Type;
 import java.util.HashMap;
@@ -162,12 +163,14 @@ public class JaxWsServiceConfiguration e
             } else {
                 return Boolean.TRUE;
             }
-        } 
+        }
         if (method.getDeclaringClass().isInterface()) {
             return hasWebServiceAnnotation(method);
         }
         if (implInfo.getSEIClass() == null) {
-            return hasWebServiceAnnotation(method);
+            return hasWebServiceAnnotation(method)
+                && !Modifier.isFinal(method.getModifiers())
+                && !Modifier.isStatic(method.getModifiers());
         }
         return implInfo.getSEIClass().isAssignableFrom(method.getDeclaringClass());
     }