8211941: Enable checking/ignoring of non-conforming Class-Path entries
Reviewed-by: alanb, mchung
--- a/src/java.base/share/classes/jdk/internal/loader/URLClassPath.java Thu Mar 21 14:40:04 2019 -0400
+++ b/src/java.base/share/classes/jdk/internal/loader/URLClassPath.java Thu Mar 21 11:58:00 2019 -0700
@@ -103,10 +103,13 @@
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;
- 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. */