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-10224] Initing NSObjects via a Generic no longer works in Xcode 10.2 #52624

Closed
swift-ci opened this issue Mar 28, 2019 · 1 comment
Closed
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software regression run-time crash Bug → crash: Swift code crashed during execution swift 5.0

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-10224
Radar rdar://problem/49423627
Original Reporter lucasjordan (JIRA User)
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

Xcode 10.2

macOS 10.14.4

Additional Detail from JIRA
Votes 1
Component/s Compiler
Labels Bug, 5.0Regression, RunTimeCrash
Assignee lucasjordan (JIRA)
Priority Medium

md5: e6aafee38146c466a1c8a175a63d363d

Issue Description:

I have attached a playground that works in Xcode 10.1 and not in Xcode 10.2. Basically there is a function that creates a new object based on the generic type used.

This is used heavily in a project I maintain to handle serialization and deserialization of a mix of NSObjects and vanilla Swift objects.

Also, I am calling this a bug because the object that comes back from the function causes a EXC_BAD_ACCESS regardless of if let and what not.

Thanks!

Also, I don't have a workaround yet.

@jckarter
Copy link
Member

I think @slavapestov fixed this on master. With a recent snapshot, the playground prints:

Lucas
Jordan

as expected. Would you be able to try a recent snapshot toolchain from swift.org/download to confirm?

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Dec 12, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software regression run-time crash Bug → crash: Swift code crashed during execution swift 5.0
Projects
None yet
Development

No branches or pull requests

3 participants