Incorrect super-class-method-mismatch warning with ARC and properties
| Originator: | me | ||
| Number: | rdar://11793793 | Date Originated: | 02-Jul-2012 04:57 PM |
| Status: | Closed | Resolved: | 13-Aug-2012 03:30 PM |
| Product: | Developer Tools | Product Version: | 4.5 (4G108j) |
| Classification: | Other Bug | Reproducible: | Always |
% xcrun clang --version
Apple clang version 4.0 (tags/Apple/clang-421.10.48) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.0.0
Thread model: posix
% xcrun clang -fobjc-arc -c -Wsuper-class-method-mismatch mismatch.m
mismatch.m:15:31: warning: method parameter type 'NSString *__strong' does not match super
class method parameter type 'NSString *' [-Wsuper-class-method-mismatch]
- (void)setThingy:(NSString *)val
^
mismatch.m:4:33: note: previous declaration is here
@property (nonatomic) NSString *thingy;
^
1 warning generated.
// mismatch.m
#import <Foundation/Foundation.h>
@interface Super : NSObject
@property (nonatomic) NSString *thingy;
@end
@implementation Super
@end
@interface Sub : Super
@end
@implementation Sub
- (void)setThingy:(NSString *)val
{
[super setThingy:val];
}
@end
13-Aug-2012 03:30 PM Apple Developer Bug Reporting Team :
Engineering has provided the following information:
We believe this issue has been addressed in Xcode 4.5 Developer Preview 4. Please verify with this release, and update your bug report with the results.
13-Aug-2012 03:53 PM Jonathon Mah:
This issue has been verified as resolved and can be closed.
Btw, I _love_ being able to Google the Radar number and see the associated commits (and test cases) in the Clang and LLVM projects. Thanks!
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!