Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#11600] Vector.from(ArraySeq) copies elems rather than reusing
unsafeArray There were issues with reusing the ArraySeq unsafeArray which arose in subsequent calls to Vector#updated which would then clone underlying arrays, and insert into them the new updated element. However the underlying array.clone() would return a new array with the same componentType as the passed varargs, rather than an Array[AnyRef] which is required in the general case.
- Loading branch information
Showing
2 changed files
with
61 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters