OpenJDK / jdk / jdk
changeset 54670:a38438fcbbd2
8221267: Document the jdk.net.URLClassPath.showIgnoredClassPathEntries system property
Reviewed-by: alanb, bpb, lancea
author | bchristi |
---|---|
date | Wed, 01 May 2019 13:07:30 -0700 |
parents | ad45b3802d4e |
children | 41339a468716 |
files | src/java.base/share/classes/java/lang/ClassLoader.java |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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