Skip to content

Commit afba262

Browse files
committed
Prevent Scala reflection from running static class initializer.
1 parent dd1b7a6 commit afba262

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ object GenerateMIMAIgnore {
5050
is a module or class. */
5151

5252
val privateAsClass = mirror
53-
.staticClass(className)
53+
.classSymbol(Class.forName(className, false, classLoader))
5454
.privateWithin
5555
.fullName
5656
.startsWith(packageName)

0 commit comments

Comments
 (0)