You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ryan Johnson (Jira)" <ji...@apache.org> on 2022/08/18 23:00:00 UTC
[jira] [Created] (SPARK-40141) Task listener overloads no longer needed with JDK 8+
Ryan Johnson created SPARK-40141:
------------------------------------
Summary: 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
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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org