-[NSObject autoContentAccessingProxy] is broken
| Originator: | cedric.luthi | ||
| Number: | rdar://10810791 | Date Originated: | 06-Feb-2012 01:43 AM |
| Status: | Duplicate/9906368 | Resolved: | |
| Product: | iPhone SDK | Product Version: | 5.0.1 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: -[NSObject autoContentAccessingProxy] is broken Steps to Reproduce: NSPurgeableData * data = [NSPurgeableData dataWithBytes:"123" length:3]; NSLog(@"data.length = %u", data.length); id proxyData = [data autoContentAccessingProxy]; NSLog(@"proxyData.length = %u", [proxyData length]); // throws NSInvalidArgumentException! [data endContentAccess]; [data release]; Expected Results: No exception is raised. Actual Results: NSInvalidArgumentException is raised when accessing [proxyData length]. Regression: Unknown Notes: A discussion of the problem can be found here: http://stackoverflow.com/questions/8015940/does-nsobject-autocontentaccessingproxy-work-at-all
Comments
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!