[
https://issues.apache.org/jira/browse/AXIS2-4630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13649323#comment-13649323
]
Kishanthan Thangarajah commented on AXIS2-4630:
-----------------------------------------------
This is same as AXIS2-4117. Its is still there with 1.6.2 also. A possible fix
for this is to skip the instantiation part in the fromString() section in
ADBBeanTemplate, if the element is defined as abstract. This can be easily
reproduced by using the attached wsdl file in AXIS2-4117.
> ADB generates code that doesn't compile when WSDL has abstract types.
> ---------------------------------------------------------------------
>
> Key: AXIS2-4630
> URL: https://issues.apache.org/jira/browse/AXIS2-4630
> Project: Axis2
> Issue Type: Bug
> Components: adb
> Affects Versions: 1.5.1
> Reporter: Aaron Gourley
> Assignee: Amila Chinthaka Suriarachchi
>
> In ADBBeanTemplate.xsl, occurrences of the following exist without taking
> into consideration the fact that the class may have been declared as abstract:
> new <xsl:value-of select="$name"/>();
> Classes are declared abstract if @isAbstract='true' here (also in
> ADBBeanTemplate.xsl):
> <xsl:if test="@isAbstract and @unwrapped and
> not(@skip-write)">abstract</xsl:if>
> Obviously, abstract classes can not be instantiated directly. Specifically I
> am seeing the problem in the generated Factory.fromString() method.
--
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]