[jira] [Commented] (SPARK-47223) Update usage of deprecated Thread.getId() to Thread.threadId()
[ https://issues.apache.org/jira/browse/SPARK-47223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=1788#comment-1788 ] Neil Gupta commented on SPARK-47223: Update: Realized that the minimum Java version here is Java 17, thus cannot use the method since it exists in Java19+. > 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 >Priority: Trivial > Labels: pull-request-available > 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()|#getId()]] given that the current version is using > Java 21. Java officially requests any type of usage to be switched to the > [Thread.threadId()|#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
[jira] [Commented] (SPARK-47223) Update usage of deprecated Thread.getId() to Thread.threadId()
[ https://issues.apache.org/jira/browse/SPARK-47223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17821925#comment-17821925 ] Neil Gupta commented on SPARK-47223: I can take a stab it this one myself > 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 >Priority: Trivial > 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()|#getId()]] given that the current version is using > Java 21. Java officially requests any type of usage to be switched to the > [Thread.threadId()|#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