8211941: Enable checking/ignoring of non-conforming Class-Path entries
authorbchristi
Thu, 21 Mar 2019 11:58:00 -0700
changeset 54218 3fe41815505c
parent 54217 98a01c1344aa
child 54219 35e8d1eb4040
8211941: Enable checking/ignoring of non-conforming Class-Path entries Reviewed-by: alanb, mchung
src/java.base/share/classes/jdk/internal/loader/URLClassPath.java
--- 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. */