URI.create("s://:").resolve("a/b/c").toString() yields "s://:a/b/c"
URI.create("s://h:").resolve("a/b/c").toString() yields "s://ha/b/c"
URI.create("s://h:80").resolve("a/b/c").toString() yields "s://h:80a/b/c"
URI.create("s://h:").resolve("a/b/c").toString() yields "s://ha/b/c"
URI.create("s://h:80").resolve("a/b/c").toString() yields "s://h:80a/b/c"
- duplicates
-
JDK-8272702 Resolving URI relative path with no / may lead to incorrect toString
-
- Closed
-