Skip to content

[MWRAPPER-124] MavenWrapperDownloader uses new URL(String), which is deprecated in Java 21 #232

@jira-importer

Description

@jira-importer

Russell Howe opened MWRAPPER-124 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-132 Inlined mvnw Downloader.java uses new URL(String), which is deprecated in Java 21
    ("is cloned by")

Remote Links:

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