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

Sean R. Owen resolved SPARK-40141.
----------------------------------
    Resolution: Won't Fix

> Task listener overloads no longer needed with JDK 8+
> ----------------------------------------------------
>
>                 Key: SPARK-40141
>                 URL: https://issues.apache.org/jira/browse/SPARK-40141
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 3.3.0
>            Reporter: Ryan Johnson
>            Priority: Major
>
> TaskContext defines methods for registering completion and failure listeners, 
> and the respective listener types qualify as functional interfaces in JDK 8+. 
> This leads to awkward ambiguous overload errors with the overload of each 
> function, that takes a function directly instead of a listener. Now that JDK 
> 8 is the minimum allowed, we can remove the unnecessary overloads, which not 
> only simplifies the code, but also removes a source of frustration since it 
> can be nearly impossible to predict when an ambiguous overload might be 
> triggered.



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

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

Reply via email to