You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Russell Howe (Jira)" <ji...@apache.org> on 2024/02/17 09:50:00 UTC
[jira] [Created] (MWRAPPER-124) MavenWrapperDownloader uses new URL(String), which is deprecated in Java 21
Russell Howe created MWRAPPER-124:
-------------------------------------
Summary: MavenWrapperDownloader uses new URL(String), which is deprecated in Java 21
Key: MWRAPPER-124
URL: https://issues.apache.org/jira/browse/MWRAPPER-124
Project: Maven Wrapper
Issue Type: Improvement
Components: Maven Wrapper Scripts
Affects Versions: 3.2.0
Reporter: Russell Howe
{code:java}
new URL(String)
{code}
was deprecated in Java 21: [https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/net/URL.html#constructor-deprecation]
The Maven Wrapper docs say that Java 7+ is supported, so we can switch to using
{code:java}
URI.create(String).toURL()
{code}
instead, which is supported in Java 7
--
This message was sent by Atlassian Jira
(v8.20.10#820010)