[ 
https://issues.apache.org/jira/browse/SPARK-33285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yang Jie updated SPARK-33285:
-----------------------------
    Description: 
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}

  was:
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}
There are 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}


> 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: Sub-task
>          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: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to