Skip to content

IArray.toArray: Deprecate broken method #12598

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

Merged
merged 1 commit into from
May 25, 2021

Conversation

smarter
Copy link
Member

@smarter smarter commented May 25, 2021

No description provided.

@smarter smarter added this to the 3.0.1-RC1 milestone May 25, 2021
@smarter smarter requested a review from sjrd May 25, 2021 14:02
@smarter smarter changed the title IArray.toArray: Fix unsound cast IArray.toArray: Deprecate broken method, add experimental overload May 25, 2021
The cast in the original method is unsound. Any attempt at fixing
this would break source-compatibility, so this commit only deprecates
it, to be revisited for 3.1.
@sjrd sjrd changed the title IArray.toArray: Deprecate broken method, add experimental overload IArray.toArray: Deprecate broken method May 25, 2021
@smarter smarter enabled auto-merge May 25, 2021 19:46
@smarter smarter merged commit 8f3fdf5 into scala:master May 25, 2021
@smarter smarter deleted the fix-toArray branch May 25, 2021 21:22
@Kordyjan Kordyjan modified the milestones: 3.0.1-RC1, 3.0.1 Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IArray.toArray is potentially unsafe (ArrayStoreException, ClassCastException)
3 participants