Skip to content
Permalink
Browse files

8228548: Normalize normalization for all

Reviewed-by: chegar, rhalade, igerasim
  • Loading branch information
dfuch committed Aug 8, 2019
1 parent 2215201 commit 3375411e1b1f838fc951a27791230e0817707f1c
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/java.base/share/classes/java/net/URL.java
@@ -45,6 +45,7 @@

import jdk.internal.access.JavaNetURLAccess;
import jdk.internal.access.SharedSecrets;
import jdk.internal.misc.VM;
import sun.net.util.IPAddressUtil;
import sun.security.util.SecurityConstants;
import sun.security.action.GetPropertyAction;
@@ -1431,7 +1432,7 @@ static URLStreamHandler getURLStreamHandler(String protocol) {
boolean checkedWithFactory = false;
boolean overrideableProtocol = isOverrideable(protocol);

if (overrideableProtocol && jdk.internal.misc.VM.isBooted()) {
if (overrideableProtocol && VM.isBooted()) {
// Use the factory (if any). Volatile read makes
// URLStreamHandlerFactory appear fully initialized to current thread.
fac = factory;
@@ -1665,7 +1666,9 @@ private URL fabricateNewURL()
}

boolean isBuiltinStreamHandler(URLStreamHandler handler) {
return isBuiltinStreamHandler(handler.getClass().getName());
Class<?> handlerClass = handler.getClass();
return isBuiltinStreamHandler(handlerClass.getName())
|| VM.isSystemDomainLoader(handlerClass.getClassLoader());
}

private boolean isBuiltinStreamHandler(String handlerClassName) {

0 comments on commit 3375411

Please sign in to comment.