You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by am...@apache.org on 2007/07/02 16:29:31 UTC

svn commit: r552504 - in /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl: codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java template/java/MessageReceiverTemplate.xsl

Author: amilas
Date: Mon Jul  2 07:29:30 2007
New Revision: 552504

URL: http://svn.apache.org/viewvc?view=rev&rev=552504
Log:
added fully qualified paths

Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/MessageReceiverTemplate.xsl

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java?view=diff&rev=552504&r1=552503&r2=552504
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java (original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java Mon Jul  2 07:29:30 2007
@@ -398,7 +398,7 @@
                     QName faultQName = new QName(codeGenConfiguration.getTargetNamespace(), faultMessage.getName());
                     if (this.mapper.getQNameToMappingObject(faultQName) != null) {
                         // i.e we already have an entry
-                        className = makeJavaClassName(className + (uniqueFaultNameCounter++));
+                        className = makeJavaClassName(className + "Exception" + (uniqueFaultNameCounter++));
                     }
                     while (fullyQualifiedFaultClassNameMap.containsValue(className)) {
                         className = makeJavaClassName(className + (uniqueFaultNameCounter++));

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/MessageReceiverTemplate.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/MessageReceiverTemplate.xsl?view=diff&rev=552504&r1=552503&r2=552504
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/MessageReceiverTemplate.xsl (original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/MessageReceiverTemplate.xsl Mon Jul  2 07:29:30 2007
@@ -228,7 +228,7 @@
 
                             <xsl:otherwise>
                                 //Unknown style!! No code is generated
-                                throw new UnsupportedOperationException("Unknown Style");
+                                throw new java.lang.UnsupportedOperationException("Unknown Style");
                             </xsl:otherwise>
                         </xsl:choose>
                     </xsl:when>
@@ -242,7 +242,7 @@
         </xsl:for-each>
         <xsl:if test="method">
             } else {
-              throw new RuntimeException("method not found");
+              throw new java.lang.RuntimeException("method not found");
             }
         </xsl:if>
 
@@ -261,7 +261,7 @@
         </xsl:for-each>
         <!-- put the extra bracket-->
         <xsl:if test="count(fault-list/fault)=0">}</xsl:if>
-        catch (Exception e) {
+        catch (java.lang.Exception e) {
         throw org.apache.axis2.AxisFault.makeFault(e);
         }
         }
@@ -382,7 +382,7 @@
 
                         <xsl:otherwise>
                             //Unknown style!! No code is generated
-                            throw new UnsupportedOperationException("Unknown Style");
+                            throw new java.lang.UnsupportedOperationException("Unknown Style");
                         </xsl:otherwise>
                     </xsl:choose>
 
@@ -396,12 +396,12 @@
         </xsl:for-each>
             <xsl:if test="method">
                 } else {
-                  throw new RuntimeException("method not found");
+                  throw new java.lang.RuntimeException("method not found");
                 }
             </xsl:if>
 
         }
-        } catch (Exception e) {
+        } catch (java.lang.Exception e) {
         throw org.apache.axis2.AxisFault.makeFault(e);
         }
         }
@@ -557,7 +557,7 @@
 
                         <xsl:otherwise>
                             //Unknown style!! No code is generated
-                            throw new UnsupportedOperationException("Unknown Style");
+                            throw new java.lang.UnsupportedOperationException("Unknown Style");
                         </xsl:otherwise>
                     </xsl:choose>
                 </xsl:when>
@@ -570,7 +570,7 @@
         </xsl:for-each>
              <xsl:if test="method">
                 } else {
-                  throw new RuntimeException("method not found");
+                  throw new java.lang.RuntimeException("method not found");
                 }
             </xsl:if>
 
@@ -587,7 +587,7 @@
         </xsl:for-each>
         <!-- put the extra bracket-->
         <xsl:if test="count(fault-list/fault)=0">}</xsl:if>
-        catch (Exception e) {
+        catch (java.lang.Exception e) {
         throw org.apache.axis2.AxisFault.makeFault(e);
         }
         }



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