cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r800497 - in /cxf/trunk/rt/frontend: jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceConfiguration.java simple/src/main/java/org/apache/cxf/service/factory/DefaultServiceConfiguration.java
Date Mon, 03 Aug 2009 19:13:18 GMT
Author: dkulp
Date: Mon Aug  3 19:13:18 2009
New Revision: 800497

URL: http://svn.apache.org/viewvc?rev=800497&view=rev
Log:
[CXF-2375] Filter out synthetic methods from service.

Modified:
    cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceConfiguration.java
    cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/DefaultServiceConfiguration.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=800497&r1=800496&r2=800497&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
Mon Aug  3 19:13:18 2009
@@ -151,10 +151,10 @@
     public Boolean isWebMethod(final Method method) {
         if (method == null
             || method.getReturnType().equals(Future.class)
-            || method.getReturnType().equals(Response.class)) {
+            || method.getReturnType().equals(Response.class)
+            || method.isSynthetic()) {
             return Boolean.FALSE;
         }
-        
         WebMethod wm = method.getAnnotation(WebMethod.class);
         if (wm != null) {
             if (wm.exclude()) {

Modified: cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/DefaultServiceConfiguration.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/DefaultServiceConfiguration.java?rev=800497&r1=800496&r2=800497&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/DefaultServiceConfiguration.java
(original)
+++ cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/DefaultServiceConfiguration.java
Mon Aug  3 19:13:18 2009
@@ -220,8 +220,7 @@
         }
         
         final int modifiers = method.getModifiers();
-
-        if (Modifier.isPublic(modifiers) && !Modifier.isStatic(modifiers)) {
+        if (Modifier.isPublic(modifiers) && !Modifier.isStatic(modifiers) &&
!method.isSynthetic()) {
             return Boolean.TRUE;
         }
         return Boolean.FALSE;



Mime
View raw message