URLsTest fails on recent JDK versions (both Java 11 and Java 8)

Description

The failure in question happens when using this:

URL url = new URL("file", "////oehhwsfs09", "/some/path/on/the/server/filename.nds");

which newer versions of java respond to with:

java.net.MalformedURLException: Illegal character found in host: '/'

Older versions parsed it without issues.

Environment

None

Status

Assignee

Andrea Aime

Reporter

Andrea Aime

Triage

None

Components

Priority

Medium
Configure