mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
8272702: Resolving URI relative path with no / may lead to incorrect toString
This commit is contained in:
parent
233e5d2365
commit
d64e86b71f
@ -2106,7 +2106,7 @@ public final class URI
|
||||
// -- Normalization, resolution, and relativization --
|
||||
|
||||
// RFC2396 5.2 (6)
|
||||
private static String resolvePath(String base, String child)
|
||||
private static String resolvePath(String base, String child, boolean absolute)
|
||||
{
|
||||
int i = base.lastIndexOf('/');
|
||||
int cn = child.length();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user