--- old/src/java.base/share/classes/java/net/URLStreamHandler.java 2018-11-12 15:48:39.000000000 +0000 +++ new/src/java.base/share/classes/java/net/URLStreamHandler.java 2018-11-12 15:48:38.000000000 +0000 @@ -250,15 +250,15 @@ } else if (path != null && path.length() > 0) { isRelPath = true; int ind = path.lastIndexOf('/'); - String seperator = ""; + String separator = ""; if (ind == -1 && authority != null) - seperator = "/"; - path = path.substring(0, ind + 1) + seperator + + separator = "/"; + path = path.substring(0, ind + 1) + separator + spec.substring(start, limit); } else { - String seperator = (authority != null) ? "/" : ""; - path = seperator + spec.substring(start, limit); + String separator = (authority != null) ? "/" : ""; + path = separator + spec.substring(start, limit); } } else if (queryOnly && path != null) { int ind = path.lastIndexOf('/'); @@ -314,7 +314,7 @@ /** * Returns the default port for a URL parsed by this handler. This method - * is meant to be overidden by handlers with default port numbers. + * is meant to be overridden by handlers with default port numbers. * @return the default port for a {@code URL} parsed by this handler. * @since 1.3 */ @@ -323,7 +323,7 @@ } /** - * Provides the default equals calculation. May be overidden by handlers + * Provides the default equals calculation. May be overridden by handlers * for other protocols that have different requirements for equals(). * This method requires that none of its arguments is null. This is * guaranteed by the fact that it is only called by java.net.URL class. @@ -342,7 +342,7 @@ } /** - * Provides the default hash calculation. May be overidden by handlers for + * Provides the default hash calculation. May be overridden by handlers for * other protocols that have different requirements for hashCode * calculation. * @param u a URL object