[
https://issues.apache.org/jira/browse/AXIS2-5518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13647415#comment-13647415
]
Martin Gainty commented on AXIS2-5518:
--------------------------------------
public static java.lang.Object getTypeObject(java.lang.String
namespaceURI,
java.lang.String
typeName,
javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
<xsl:for-each select="type">
if (
"<xsl:value-of select="@nsuri"/>".equals(namespaceURI)
&&
"<xsl:value-of select="@shortname"/>".equals(typeName)){
<xsl:choose>
<xsl:when test="$helperMode">
return <xsl:value-of
select="@classname"/>Helper.INSTANCE.parse(reader);
</xsl:when>
<xsl:otherwise>
return <xsl:value-of
select="@classname"/>.Factory.parse(reader);
</xsl:otherwise>
</xsl:choose>
}
</xsl:for-each>
throw new org.apache.axis2.databinding.ADBException("Unsupported
type " + namespaceURI + " " + typeName);
}
a mismatch between opening
(
and closing
}
https://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
Martin-
> adb-codegen: ADBBeanTemplate.xsl generates erroneous code resulting in javac
> error: 'else' without 'if'
> -------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-5518
> URL: https://issues.apache.org/jira/browse/AXIS2-5518
> Project: Axis2
> Issue Type: Bug
> Components: adb
> Affects Versions: 1.5.1
> Environment: Various Windows and Java 6 JDKs have produced this error
> Reporter: William Walsh
> Priority: Minor
>
> It appears that the code in ADBBeanTemplate.xsl at line 2837 generates the
> beginning of a try block whose end and subsequent catch block, generated at
> line 3552, fall after the else generated at line 2819.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]