Return-Path: Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: (qmail 34401 invoked from network); 20 May 2010 23:34:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 May 2010 23:34:00 -0000 Received: (qmail 27651 invoked by uid 500); 20 May 2010 23:34:00 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 27600 invoked by uid 500); 20 May 2010 23:33:59 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 27593 invoked by uid 99); 20 May 2010 23:33:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 May 2010 23:33:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 May 2010 23:33:57 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2A6ED23889E7; Thu, 20 May 2010 23:33:36 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100520233336.2A6ED23889E7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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()); }