Umaid1 / wsdl2objc

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

Generated property starting with init conflict with Objective-C naming convention #214

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Attempt to use wsdl2objc on http://testpruebaws.cognifit.com/CPCService?wsdl
2. Include the generated code into a project.
3. Example source can be found at 
https://github.com/gradha/wsdl2obj_google_bugs/commit/22ed9dc66ad8aefa5394a1c53c
f67d7b23dfbfc2

What is the expected output?

Compile.

What do you see instead?

Error compiler:

In file included from 
/Users/gradha/Desktop/wsdl2obj_google_bugs/wsdl2obj_google_bugs/ViewController.m
:11:
/Users/gradha/Desktop/wsdl2obj_google_bugs/generated_code/CPCServiceSvc.h:3721:4
2: error: init methods must return a type related to the receiver type
@property (nonatomic, retain) NSNumber * initValue;
                                         ^
/Users/gradha/Desktop/wsdl2obj_google_bugs/generated_code/CPCServiceSvc.h:3858:4
2: error: init methods must return a type related to the receiver type
@property (nonatomic, retain) NSNumber * initValue;
                                         ^
/Users/gradha/Desktop/wsdl2obj_google_bugs/generated_code/CPCServiceSvc.h:4467:4
2: error: init methods must return a type related to the receiver type
@property (nonatomic, retain) NSNumber * initValue;
                                         ^
3 errors generated.

What version of the product are you using? On what operating system?

r234

Please provide any additional information below.

This situation can be patched using Xcode's refactoring tools to rename the 
initValue property to something like mInitValue. See example at 
https://github.com/gradha/wsdl2obj_google_bugs/commit/0d87f1074bc846c6aa7b9a87fb
05531818cb44fd.

Original issue reported on code.google.com by supergra...@gmail.com on 23 Nov 2014 at 9:20

GoogleCodeExporter commented 8 years ago
Example repository was deleted due to confidentiality issues.

Original comment by supergra...@gmail.com on 24 Nov 2014 at 10:46