[
https://issues.apache.org/jira/browse/AXIS2C-1574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Lazarski resolved AXIS2C-1574.
-------------------------------------
Fix Version/s: 2.0.0
Resolution: Fixed
Add 'Type' to reserved words list for AXIS2C-1574 coverage
AXIS2C-1574 described conflicts with property_Type when schema elements
are named "Type" (capitalized). While the native generator doesn't have
the same hardcoded property_Type as the Java XSL templates, adding "Type"
to the reserved words test ensures this pattern is detected if it occurs.
> Generated code has duplicate property_Type definitions
> ------------------------------------------------------
>
> Key: AXIS2C-1574
> URL: https://issues.apache.org/jira/browse/AXIS2C-1574
> Project: Axis2-C
> Issue Type: Bug
> Components: code generation
> Affects Versions: 1.6.0
> Reporter: Hengli Wang
> Priority: Major
> Fix For: 2.0.0
>
>
> I have a WSDL file that has a complexType with an element named Type,
> <element name="MyType">
> <complexType>
> <sequence>
> <element name="Type" type="xsd:integer" minOccurs="0"
> maxOccurs="1" nillable="true"/>
> </sequence>
> </complexType>
> </element>
> The generated code defines two property_Type,
> axis2_char_t *property_Type;
> ...
> int property_type;
> A close look shows that 'axis2_char_t *property_Type;' is hard coded in
> CADBBeanTemplateSource.xsl. I replaced all hard coded property_Type with
> _property_Type, and it seems that generated code is happy.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]