LuciferYang commented on code in PR #48192:
URL: https://github.com/apache/spark/pull/48192#discussion_r1773464908


##########
project/SparkBuild.scala:
##########
@@ -250,7 +250,10 @@ object SparkBuild extends PomBuild {
         // reduce the cost of migration in subsequent versions.
         "-Wconf:cat=deprecation&msg=it will become a keyword in Scala 3:e",
         // SPARK-46938 to prevent enum scan on pmml-model, under spark-mllib 
module.
-        "-Wconf:cat=other&site=org.dmg.pmml.*:w"
+        "-Wconf:cat=other&site=org.dmg.pmml.*:w",
+        // Some deprecated calls is a compilation error in Scala 2.13.15.
+        
"-Wconf:cat=deprecation&msg=^(?=.*?method|value|object|trait|class|constructor)(?=.*?in)(?=.*?deprecated).+$:w",

Review Comment:
   Thanks @SethTisue ~
   
   @panbingkun I think we should test 
   
   ```
   <arg>-Wconf:any:e</arg>
   <arg>-Wconf:cat=deprecation:wv</arg>
   ```
   for maven 
   
   and 
   
   ```
   "-Wconf:any:e",
   "-Wconf:cat=deprecation:wv",
   ```
   
   for sbt



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to