Neil Gupta created SPARK-47223: ---------------------------------- Summary: Update usage of deprecated Thread.getId() to Thread.threadId() Key: SPARK-47223 URL: https://issues.apache.org/jira/browse/SPARK-47223 Project: Spark Issue Type: Request Components: Spark Core, SQL Affects Versions: 3.5.1 Reporter: Neil Gupta Fix For: 3.5.1
Update usage of deprecated Thread.getId() to Thread.threadId(). Currently in Spark, there are multiple references still to the deprecated method [`Thread.getId()`|[https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Thread.html#getId()]|https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Thread.html#getId()],] given that the current version is using Java 21. Java officially requests any type of usage to be switched to the [`Thread.threadId()`|[https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Thread.html#threadId()]] method instead. -- 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