Skip to content

[MWRAPPER-132] Inlined mvnw Downloader.java uses new URL(String), which is deprecated in Java 21 #275

Description

@jira-importer

James Z.M. Gao opened MWRAPPER-132 and commented

new URL(String)

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

URI.create(String).toURL()

instead, which is supported in Java 7


Affects: 3.2.0

Issue Links:

  • MWRAPPER-124 MavenWrapperDownloader uses new URL(String), which is deprecated in Java 21
    ("is a clone of")

Remote Links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions