8221267: Document the jdk.net.URLClassPath.showIgnoredClassPathEntries system property
authorbchristi
Wed, 01 May 2019 13:07:30 -0700
changeset 54670 a38438fcbbd2
parent 54669 ad45b3802d4e
child 54671 41339a468716
8221267: Document the jdk.net.URLClassPath.showIgnoredClassPathEntries system property Reviewed-by: alanb, bpb, lancea
src/java.base/share/classes/java/lang/ClassLoader.java
--- a/src/java.base/share/classes/java/lang/ClassLoader.java	Wed May 01 12:31:29 2019 -0700
+++ b/src/java.base/share/classes/java/lang/ClassLoader.java	Wed May 01 13:07:30 2019 -0700
@@ -1893,6 +1893,16 @@
      * otherwise, if unnamed, it will set the class path to the current
      * working directory.
      *
+     * <p> JAR files on the class path may contain a {@code Class-Path} manifest
+     * attribute to specify dependent JAR files to be included in the class path.
+     * {@code Class-Path} entries must meet certain conditions for validity (see
+     * the <a href="{@docRoot}/../specs/jar/jar.html#class-path-attribute">
+     * JAR File Specification</a> for details).  Invalid {@code Class-Path}
+     * entries are ignored.  For debugging purposes, ignored entries can be
+     * printed to the console if the
+     * {@systemProperty jdk.net.URLClassPath.showIgnoredClassPathEntries} system
+     * property is set to {@code true}.
+     *
      * @return  The system {@code ClassLoader}
      *
      * @throws  SecurityException