arishanapalli / wsdl2objc

Automatically exported from code.google.com/p/wsdl2objc
MIT License
0 stars 0 forks source link

Objective C keywords are not properly escaped #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a WSDL with the following type:

<xsd:complexType name="Test">
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="0" name="field1" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="inline" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>

2. Observe that the properties generated for the second field have the name
"inline" which is a reserved word within Objective C. This obviously this
leads to compilation errors in the generated source.

Suggested fix: Use a lookup for reserved keywords and pre- or postfix them
with some string like "_". Within the XML-code, however, use the original
name as used in the type definition.

Version: 0.6

Mac OS X 10.6.1

Original issue reported on code.google.com by benjamin...@gmail.com on 16 Oct 2009 at 12:30

GoogleCodeExporter commented 9 years ago
Fixed in r146

Original comment by madcow...@gmail.com on 16 Oct 2009 at 4:11

GoogleCodeExporter commented 9 years ago
Great response time!

Original comment by benjamin...@gmail.com on 16 Oct 2009 at 5:08