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
NullPointerException using Vector in 2.13.8 and 3.1.1 #12564
Comments
nice catch and minimization! @scala/collections anyone feel like digging into this? |
Note of interest, if you change the appended collection size from 40 to 30, you get the val vector1 = Vector.fill(1000)(0)
// Some prepending, manifesting the bug seems to require 2 separate prepends
val vector2 = List.fill(25)(1) ++: 2 +: vector1
// Now append for fun and profit
val vector3 = vector2 ++ List.fill(30)(3) Gives:
Scala 2.13.8 Scastie: https://scastie.scala-lang.org/xmHvVtcCQuCkwdIN4SRCJA |
Hmm...
|
Scala 2.13.2 is OK, 2.13.3 is bad. Maybe regressed in scala/scala#9036 ? |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction steps
Scala version: 2.13.8, 3.1.1
Scala 2.13.8 Scastie: https://scastie.scala-lang.org/Z2g0dZaoRvG6iZchGULXBQ
Scala 3.1.1 Scastie: https://scastie.scala-lang.org/fA91IRCPRi2PSDkPWUOFOg
Problem
Run the above and you will see the stack trace:
The text was updated successfully, but these errors were encountered: