Class with a private and public property does work well with ARC converter

Number:rdar://9992142 Date Originated:Sat, 20 Aug 2011 22:30:28 GMT
Status:Open Resolved:
Product:Developer Tools Product Version:4.2 (4D5163b)
Classification:Serious Bug Reproducible:Always
Summary: A class that has a readonly public property and a private readwrite proprety is not handled correctly with the ARC converter in Xcode 4.2. The public property changes from "retain" to "strong", but not the private one, causing problem.

Steps to Reproduce: 

- Have a class with a public and a private property, something like : 

@property (nonatomic, readonly, retain) NSObject* anyProprety;

.m, in class extension
@property (nonatomic, readwrite, retain) NSObject* anyProprety;

- Run the "Convert to ARC" command in Xcode 4.2.

Expected Results: Both property declaration are changed to the strong attribute.

Actual Results: Only the .h property declaration is changed to strong, causing other problem and warning in the project.


Notes: Attached a example project. It's currently in manual memory management, just run the convertor on it.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!