Skip to content

Commit ae52e37

Browse files
committed
Update MiMa filters to match
1 parent 9a6a1fa commit ae52e37

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

project/MiMaFilters.scala

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ object MiMaFilters {
1313
ProblemFilters.exclude[MissingClassProblem]("scala.annotation.unchecked.uncheckedOverride"),
1414

1515
// against 3.8.0-RC1
16+
// new private[collection] class StrictKeySet
17+
ProblemFilters.exclude[MissingClassProblem]("scala.collection.MapOps$StrictKeySet"),
1618
// private[MapOps] MapOps.allKeys changing types
1719
ProblemFilters.exclude[ReversedMissingMethodProblem]("scala.collection.MapOps#GenKeySet.allKeys"),
1820
ProblemFilters.exclude[ReversedMissingMethodProblem]("scala.collection.MapOps#GenKeySet.scala$collection$MapOps$GenKeySet$_setter_$allKeys_="),
19-
ProblemFilters.exclude[IncompatibleResultTypeProblem]("scala.collection.MapOps#KeySet.allKeys"),
20-
ProblemFilters.exclude[IncompatibleResultTypeProblem]("scala.collection.SortedMapOps#KeySortedSet.allKeys"),
21-
ProblemFilters.exclude[IncompatibleResultTypeProblem]("scala.collection.immutable.SortedMapOps#ImmutableKeySortedSet.allKeys"),
2221
// new private[collection] classes
2322
ProblemFilters.exclude[MissingClassProblem]("scala.collection.SortedMapOps$LazyKeySortedSet"),
2423
ProblemFilters.exclude[MissingClassProblem]("scala.collection.immutable.MapOps$LazyImmutableKeySet"),
@@ -35,6 +34,10 @@ object MiMaFilters {
3534
Build.mimaPreviousDottyVersion -> Seq(
3635
// scala/scala3#24855 - copied from Scala 2.13.16 by ScalaLibraryPlugin, to be removed when Scala 3.8.0 is released
3736
ProblemFilters.exclude[MissingClassProblem]("scala.collection.immutable.LazyList$State*"),
37+
// ONLY against 3.8.0-RC1 : it was a breaking change in 3.8.0-RC1 to add this method
38+
ProblemFilters.exclude[DirectMissingMethodProblem]("scala.collection.MapOps#KeySet.allKeys"),
39+
ProblemFilters.exclude[DirectMissingMethodProblem]("scala.collection.SortedMapOps#KeySortedSet.allKeys"),
40+
ProblemFilters.exclude[DirectMissingMethodProblem]("scala.collection.immutable.SortedMapOps#ImmutableKeySortedSet.allKeys"),
3841
)
3942
)
4043
}

0 commit comments

Comments
 (0)