cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r946820 - /cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceConfiguration.java
Date Thu, 20 May 2010 23:33:36 GMT
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());
     }



Mime
View raw message