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

Array.copy inconsistent behavior with out-of-range index #11211

Open
zorba128 opened this issue Oct 17, 2018 · 2 comments
Open

Array.copy inconsistent behavior with out-of-range index #11211

zorba128 opened this issue Oct 17, 2018 · 2 comments

Comments

@zorba128
Copy link

Array.copy exposes different behavior depending on path (arraycopy/slowcopy).
First line succeeds, while second fails with ArrayIndexOutOfBoundsException.

    Array.copy(Array.empty[Double], -1, Array.empty[Any], -1, 0)
    Array.copy(Array.empty[Double], -1, Array.empty[Double], -1, 0)
@SethTisue
Copy link
Member

on what Scala version(s)?

@zorba128
Copy link
Author

2.12.7, 2.11.12

@SethTisue SethTisue added this to the Backlog milestone Oct 18, 2018
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

2 participants