[
https://issues.apache.org/jira/browse/SPARK-33285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean R. Owen updated SPARK-33285:
---------------------------------
Parent: (was: SPARK-25075)
Issue Type: Improvement (was: Sub-task)
> Too many "Auto-application to `()` is deprecated." related compilation
> warnings
> --------------------------------------------------------------------------------
>
> Key: SPARK-33285
> URL: https://issues.apache.org/jira/browse/SPARK-33285
> Project: Spark
> Issue Type: Improvement
> Components: Build
> Affects Versions: 3.1.0
> Reporter: Yang Jie
> Priority: Minor
>
> There are too many "Auto-application to `()` is deprecated." related
> compilation warnings when compile with Scala 2.13 like
> {code:java}
> [WARNING] [Warn]
> /spark-src/core/src/test/scala/org/apache/spark/PartitioningSuite.scala:246:
> Auto-application to `()` is deprecated. Supply the empty argument list `()`
> explicitly to invoke method stdev,
> or remove the empty argument list from its definition (Java-defined methods
> are exempt).
> In Scala 3, an unapplied method like this will be eta-expanded into a
> function.
> {code}
> A lot of them, but it's easy to fix.
> If there is a definition as follows:
> {code:java}
> Class Foo {
> def bar(): Unit = {}
> }
> val foo = new Foo{code}
> Should be
> {code:java}
> foo.bar()
> {code}
> not
> {code:java}
> foo.bar {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]