-
Notifications
You must be signed in to change notification settings - Fork 3.1k
fix never-released 2.12.13 regression where Array[Unit].empty caused NPE #9335
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
Conversation
this regressed in scala#9091 the problem turned up in the Scala 2.12 community build -- when Scala 3 support was added to the scala-collection-compat repo, a test case there was altered in a way that happened to tickle this
|
btw, 2.13 doesn't have the bug — it seems #9091 wasn't forward-ported to 2.13, as per scala/scala-dev#721, though @dwijnand also mentioned at #9206 that it “might follow in cherry-pick/forward-port PR”, not sure if that's still on a to-do list somewhere |
its was on my TODO list (a long one) |
|
It came up whether to disallow |
|
@som-snytt it's perhaps worth mentioning that it isn't just |
The order of events is reversed: in scala/scala-dev#721 I settled it that it was too time-consuming for me to cherrypick. |
fix never-released 2.12.13 regression where Array[Unit].empty caused NPE
fix never-released 2.12.13 regression where Array[Unit].empty caused NPE
this regressed in #9091
the problem turned up in the Scala 2.12 community build -- when Scala 3 support was added to the scala-collection-compat repo, a test case there was altered in a way that happened to tickle this
even though the bug doesn't exist in 2.13, the change to the test should be merged forward