[
https://issues.apache.org/jira/browse/TEZ-4726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mahesh Raju Somalaraju updated TEZ-4726:
----------------------------------------
Description:
The java.net.URL(String), URL(String, String, int, String) and related
constructors have been deprecated since Java 20 and marked for removal.
Replace all usages with URI.create(string).toURL() and
URI.create("scheme://host:port" + path).toURL() equivalents.
{code:java}
java.net.URL
@Deprecated(since = "20")
public URL(
@NonNls @NotNull String spec
){code}
We need to scan the Tez code and replace with URI.
was:
Replace java.net.URL with URI as java.net.URL is Deprecated from Java20
{code:java}
java.net.URL
@Deprecated(since = "20")
public URL(
@NonNls @NotNull String spec
){code}
We need to scan the Tez code and replace with URI.
> Replace deprecated java.net.URL constructors with URI alternatives
> ------------------------------------------------------------------
>
> Key: TEZ-4726
> URL: https://issues.apache.org/jira/browse/TEZ-4726
> Project: Apache Tez
> Issue Type: Improvement
> Reporter: Mahesh Raju Somalaraju
> Assignee: Mahesh Raju Somalaraju
> Priority: Major
>
> The java.net.URL(String), URL(String, String, int, String) and related
> constructors have been deprecated since Java 20 and marked for removal.
> Replace all usages with URI.create(string).toURL() and
> URI.create("scheme://host:port" + path).toURL() equivalents.
> {code:java}
> java.net.URL
> @Deprecated(since = "20")
> public URL(
> @NonNls @NotNull String spec
> ){code}
> We need to scan the Tez code and replace with URI.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)