changeset 54218:3fe41815505c

8211941: Enable checking/ignoring of non-conforming Class-Path entries Reviewed-by: alanb, mchung
author bchristi
date Thu, 21 Mar 2019 11:58:00 -0700
parents 98a01c1344aa
children 35e8d1eb4040
files src/java.base/share/classes/jdk/internal/loader/URLClassPath.java
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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. */