axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r532763 - /webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/SchemaGenerator.java
Date Thu, 26 Apr 2007 14:45:20 GMT
Author: dims
Date: Thu Apr 26 07:45:19 2007
New Revision: 532763

URL: http://svn.apache.org/viewvc?view=rev&rev=532763
Log:
when generics are used the methods are marked with volatile/bridge modifier and we get duplicate
methods with the same name and throw an exception. More info at http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5070593

Modified:
    webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/SchemaGenerator.java

Modified: webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/SchemaGenerator.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/SchemaGenerator.java?view=diff&rev=532763&r1=532762&r2=532763
==============================================================================
--- webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/SchemaGenerator.java
(original)
+++ webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/SchemaGenerator.java
Thu Apr 26 07:45:19 2007
@@ -34,6 +34,7 @@
 import java.util.Locale;
 import java.util.Map;
 import java.util.Set;
+import java.lang.reflect.Modifier;
 
 /*
 * Copyright 2004,2005 The Apache Software Foundation.
@@ -195,6 +196,10 @@
 
                 for (int i = 0; i < methods.length; i++) {
                     JMethod jMethod = methods[i];
+                    // Skip methods with volatile/bridge modifier
+                    if(Modifier.isVolatile(jMethod.getModifiers())) {
+                        continue;
+                    }
                     JAnnotation methodAnnon = jMethod.getAnnotation(AnnotationConstants.WEB_METHOD);
                     if (methodAnnon != null) {
                         if (methodAnnon.getValue(AnnotationConstants.EXCLUDE).asBoolean())
{



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message