You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2007/04/27 04:11:17 UTC
svn commit: r532932 -
/webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/SchemaGenerator.java
Author: dims
Date: Thu Apr 26 19:11:16 2007
New Revision: 532932
URL: http://svn.apache.org/viewvc?view=rev&rev=532932
Log:
Let's just print a log.warn instead of throwing an exception
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=532932&r1=532931&r2=532932
==============================================================================
--- 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 19:11:16 2007
@@ -12,6 +12,8 @@
import org.apache.ws.commons.schema.utils.NamespaceMap;
import org.apache.ws.java2wsdl.bytecode.MethodTable;
import org.apache.ws.java2wsdl.utils.TypeTable;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.codehaus.jam.JAnnotation;
import org.codehaus.jam.JClass;
import org.codehaus.jam.JField;
@@ -55,6 +57,8 @@
public class SchemaGenerator implements Java2WSDLConstants {
+ private static final Log log = LogFactory.getLog(SchemaGenerator.class);
+
public static final String NAME_SPACE_PREFIX = "ax2";// axis2 name space
private static int prefixCount = 1;
@@ -196,10 +200,6 @@
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()) {
@@ -214,8 +214,8 @@
}
if (uniqueMethods.get(getSimpleName(jMethod)) != null) {
- throw new Exception(
- " Sorry we don't support methods overloading !!!! ");
+ log.warn("We don't support methods overloading. Ignoring [" + jMethod.getQualifiedName() + "]");
+ continue;
}
if (!jMethod.isPublic()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org