Skip to content

Commit fa603e0

Browse files
thunterdbsrowen
authored andcommitted
[SPARK-11732] Removes some MiMa false positives
This adds an extra filter for private or protected classes. We only filter for package private right now. Author: Timothy Hunter <[email protected]> Closes #9697 from thunterdb/spark-11732.
1 parent 5aca6ad commit fa603e0

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

project/MimaExcludes.scala

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,7 @@ object MimaExcludes {
5454
MimaBuild.excludeSparkClass("streaming.flume.FlumeTestUtils") ++
5555
MimaBuild.excludeSparkClass("streaming.flume.PollingFlumeTestUtils") ++
5656
Seq(
57-
ProblemFilters.exclude[MissingMethodProblem](
58-
"org.apache.spark.ml.classification.LogisticCostFun.this"),
59-
ProblemFilters.exclude[MissingMethodProblem](
60-
"org.apache.spark.ml.classification.LogisticAggregator.add"),
61-
ProblemFilters.exclude[MissingMethodProblem](
62-
"org.apache.spark.ml.classification.LogisticAggregator.count"),
57+
// MiMa does not deal properly with sealed traits
6358
ProblemFilters.exclude[MissingMethodProblem](
6459
"org.apache.spark.ml.classification.LogisticRegressionSummary.featuresCol")
6560
) ++ Seq(

tools/src/main/scala/org/apache/spark/tools/GenerateMIMAIgnore.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ object GenerateMIMAIgnore {
7272
val classSymbol = mirror.classSymbol(Class.forName(className, false, classLoader))
7373
val moduleSymbol = mirror.staticModule(className)
7474
val directlyPrivateSpark =
75-
isPackagePrivate(classSymbol) || isPackagePrivateModule(moduleSymbol)
75+
isPackagePrivate(classSymbol) ||
76+
isPackagePrivateModule(moduleSymbol) ||
77+
classSymbol.isPrivate
7678
val developerApi = isDeveloperApi(classSymbol) || isDeveloperApi(moduleSymbol)
7779
val experimental = isExperimental(classSymbol) || isExperimental(moduleSymbol)
7880
/* Inner classes defined within a private[spark] class or object are effectively

0 commit comments

Comments
 (0)