axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r394671 - /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
Date Mon, 17 Apr 2006 14:17:20 GMT
Author: ajith
Date: Mon Apr 17 07:17:19 2006
New Revision: 394671

URL: http://svn.apache.org/viewcvs?rev=394671&view=rev
Log:
Fixing a duplicate variable name in ADBTemplate

Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl?rev=394671&r1=394670&r2=394671&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
Mon Apr 17 07:17:19 2006
@@ -911,7 +911,9 @@
                                </xsl:when>
                                <!-- End of Array handling of ADB classes -->
                                <xsl:otherwise>
+                                   <xsl:variable name="arrayVarName">textArray<xsl:value-of
select="position()"/></xsl:variable>
                                    <xsl:if test="position()>1">
+
                                    // Move to a start element
                                    event = reader.getEventType();
                                    while (event!= javax.xml.stream.XMLStreamReader.START_ELEMENT)
{
@@ -928,12 +930,12 @@
                                       <xsl:value-of select="$stateMachineName"/>.setNillable();
                                    </xsl:if>
                                    <xsl:value-of select="$stateMachineName"/>.read(reader);
-                                   java.lang.String[] textArray = <xsl:value-of select="$stateMachineName"/>.getTextArray();
+                                   java.lang.String[] <xsl:value-of select="$arrayVarName"/>
=
+                                                <xsl:value-of select="$stateMachineName"/>.getTextArray();
                                    object.set<xsl:value-of select="$javaName"/>(
                                     (<xsl:value-of select="$propertyType"/>)
                                       org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
-                                      <xsl:value-of select="$basePropertyType"/>.class,<xsl:value-of
select="$stateMachineName"/>.getTextArray()));
-
+                                      <xsl:value-of select="$basePropertyType"/>.class,<xsl:value-of
select="$arrayVarName"/>));
                                   <!-- end of Array handling of simple types -->
                                </xsl:otherwise>
                            </xsl:choose>



Mime
View raw message