Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

lrytz
Copy link
Member

@lrytz lrytz commented Oct 18, 2024

The buildFromMapOps implicit has
CC[X, Y] <: Map[X, Y] with MapOps[X, Y, CC, _]

For CC = concurrent.Map the bound is not satisfied, we had MapOps[_, _, mutable.Map, _].

Fixes scala/bug#13047

Need to see about bin compat...

@scala-jenkins scala-jenkins added this to the 2.13.16 milestone Oct 18, 2024
@lrytz
Copy link
Member Author

lrytz commented Oct 18, 2024

MiMa verdict:

scala-library: Failed binary compatibility check against org.scala-lang:scala-library:2.13.15! Found 4 potential problems (filtered 1)

* static method newBuilder()scala.collection.mutable.Builder in interface scala.collection.concurrent.Map does not have a correspondent in other version

* static method from(scala.collection.IterableOnce)java.lang.Object in interface scala.collection.concurrent.Map does not have a correspondent in other version

* in other version, classes mixing scala.collection.concurrent.Map need be recompiled to wire to the new static mixin forwarder method all super calls to method mapFactory()scala.collection.MapFactory

* object scala.collection.concurrent.Map does not have a correspondent in other version

@SethTisue SethTisue added the library:collections PRs involving changes to the standard collection library label Oct 18, 2024
@SethTisue
Copy link
Member

@scala/collections

@SethTisue SethTisue modified the milestones: 2.13.16, 2.13.17 Nov 6, 2024
The `buildFromMapOps` implicit has
`CC[X, Y] <: Map[X, Y] with MapOps[X, Y, CC, _]`

For `CC = concurrent.Map` the bound is not satisfied,
we had `MapOps[_, _, mutable.Map, _]`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
library:collections PRs involving changes to the standard collection library library:not-forward-bincompat
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No BuildFrom instance for concurrent.Map
3 participants