include leading slash in path when parsing URLs in URLStreamHandler

This matches the behavior of OpenJDK's version.
This commit is contained in:
Joel Dice
2012-02-18 15:14:16 -07:00
parent 999e90c332
commit 750e5f903c
2 changed files with 2 additions and 3 deletions

View File

@ -40,7 +40,7 @@ public abstract class URLStreamHandler {
host = s.substring(0, colon);
port = Integer.parseInt(s.substring(colon + 1), slash);
}
s = s.substring(slash + 1);
s = s.substring(slash);
}
}