You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Steve Chong (Jira)" <ji...@apache.org> on 2023/03/21 17:41:00 UTC

[jira] [Created] (SPARK-42886) ClassNotFoundException: scala.math.Ordering$Reverse

Steve Chong created SPARK-42886:
-----------------------------------

             Summary: ClassNotFoundException: scala.math.Ordering$Reverse
                 Key: SPARK-42886
                 URL: https://issues.apache.org/jira/browse/SPARK-42886
             Project: Spark
          Issue Type: Bug
          Components: Build
    Affects Versions: 3.3.2
         Environment: Development environment

MacBook Pro

Java JDK ibm-1.8-362

 
            Reporter: Steve Chong


Hi,

We are using the spark-mllib_2.12 dependency in a Java project.

We are attempting to upgrade from version 3.3.1 to 3.3.2. This results in unit tests breaking with exception: ClassNotFoundException: scala.math.Ordering$Reverse

A change was made to add the class to the KyroSerializer  https://issues.apache.org/jira/browse/SPARK-42071

scala.math.Ordering$Reverse was introduced int Scala 2.12.12. The maven dependency tree (mvn dependency:tree) shows that spark-mllib_2.12 brings in scala-library version 2.12.8. Therefore, it doesn't contain scala.math.Ordering$Reverse. 

If the scala-library transitive dependency is excluded from the POM and an explicit dependency declared on with version >=2.12.12, the tests will pass.

Should the scala-library version contained in 3.3.2 be upgraded to >=2.12.12?

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org