8211941: Enable checking/ignoring of non-conforming Class-Path entries

Reviewed-by: alanb, mchung
This commit is contained in:
Brent Christian 2019-03-21 11:58:00 -07:00
parent af5c78efff
commit bd4dd311fd

View file

@ -103,10 +103,13 @@ public class URLClassPath {
DISABLE_ACC_CHECKING = p != null ? p.equals("true") || p.isEmpty() : false;
// This property will be removed in a later release
p = props.getProperty("jdk.net.URLClassPath.disableClassPathURLCheck", "true");
p = props.getProperty("jdk.net.URLClassPath.disableClassPathURLCheck");
DISABLE_CP_URL_CHECK = p != null ? p.equals("true") || p.isEmpty() : false;
DEBUG_CP_URL_CHECK = "debug".equals(p);
// Print a message for each Class-Path entry that is ignored (assuming
// the check is not disabled).
p = props.getProperty("jdk.net.URLClassPath.showIgnoredClassPathEntries");
DEBUG_CP_URL_CHECK = p != null ? p.equals("true") || p.isEmpty() : false;
}
/* The original search path of URLs. */