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 ch...@apache.org on 2005/07/01 08:04:00 UTC

svn commit: r208718 - /webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/template/java/InterfaceImplementationTemplate.xsl

Author: chathura
Date: Thu Jun 30 23:03:57 2005
New Revision: 208718

URL: http://svn.apache.org/viewcvs?rev=208718&view=rev
Log:
fix of ArrayIndex out of bound exception when appending  the '/' to the erp

Modified:
    webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/template/java/InterfaceImplementationTemplate.xsl

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/template/java/InterfaceImplementationTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/template/java/InterfaceImplementationTemplate.xsl?rev=208718&r1=208717&r2=208718&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/template/java/InterfaceImplementationTemplate.xsl (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/template/java/InterfaceImplementationTemplate.xsl Thu Jun 30 23:03:57 2005
@@ -38,7 +38,7 @@
         */
         public <xsl:value-of select="@name"/>(String axis2Home,String targetEndpoint) throws java.lang.Exception {
 
-          if(targetEndpoint.charAt(targetEndpoint.length())!='/')
+          if(targetEndpoint.charAt(targetEndpoint.length()-1)!='/')
         		targetEndpoint = targetEndpoint+"/";
            this.toEPR = targetEndpoint;
 		    //creating the configuration