Weak references to NSProxy using ARC

Originator:joris.kluivers
Number:rdar://11117786 Date Originated:03/26/2012
Status:Duplicate/10752025/Open Resolved:
Product:iOS SDK Product Version:5.1
Classification:Bug Reproducible:Always
 
Summary:
Weak ownership references to NSProxy subclasses are immediately nilled after assignment when using ARC.

Steps to Reproduce:
- Assign a NSProxy subclass to a (nonatomic, weak) property.
- Access that same property immediately afterwards.

Expected Results:
- Property references the NSProxy subclass

Actual Results:
- Property value is nil.

Regression:

Notes:
- included is a minimum project that demonstrates the problem

Comments

Test project

Test project included in the original rdar is available at: https://bitbucket.org/kluivers/proxytest

By joris.kluivers at March 26, 2012, 9:04 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com 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!