Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-2307] Swift 3: CharacterSet.isSuperset(of:) crashes #4123

Closed
hyp opened this issue Aug 9, 2016 · 2 comments
Closed

[SR-2307] Swift 3: CharacterSet.isSuperset(of:) crashes #4123

hyp opened this issue Aug 9, 2016 · 2 comments

Comments

@hyp
Copy link

hyp commented Aug 9, 2016

Previous ID SR-2307
Radar None
Original Reporter @hyp
Type Bug
Status Resolved
Resolution Done
Environment

Xcode 8 beta 4
Apple Swift version 3.0 (swiftlang-800.0.41.2 clang-800.0.36)
Target: x86_64-apple-macosx10.9

Additional Detail from JIRA
Votes 1
Component/s Foundation
Labels Bug, RunTimeCrash, SDKOverlay
Assignee @phausler
Priority Medium

md5: 614c3fb4717fd96064e68beec29c38f8

Issue Description:

Given the following sample code:

import Foundation
CharacterSet.letters.isSuperset(of: CharacterSet(charactersIn: "ab"))

I get the following runtime crash:

2016-08-09 12:01:16.993 swift[91581:18094762] Abstract class Foundation._SwiftNSCharacterSet does not implement method isSupersetOfSet:; it must be implemented in subclasses.
2016-08-09 12:01:16.994 swift[91581:18094762] -[Foundation._SwiftNSCharacterSet isSupersetOfSet:]: unrecognized selector sent to instance 0x7fbe7ad14d10
2016-08-09 12:01:17.058 swift[91581:18094762] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Foundation._SwiftNSCharacterSet isSupersetOfSet:]: unrecognized selector sent to instance 0x7fbe7ad14d10'

I've tried Xcode 8 beta 4, but I believe it should be reproducible on Swift master as well because '_SwiftNSCharacterSet' defined in 'https://github.com/apple/swift/blob/master/stdlib/public/SDK/Foundation/CharacterSet.swift' doesn't implement this method.

@belkadan
Copy link

belkadan commented Aug 9, 2016

cc @phausler

@phausler
Copy link
Member

phausler commented Aug 9, 2016

apple/swift#4162

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants