Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit 4b3c33b

Browse files
author
Mandy Chung
committedJun 24, 2020
8247785: Small clarification of the javadoc about builtin class loaders
Reviewed-by: alanb, rriggs, dholmes
1 parent d85ff3c commit 4b3c33b

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed
 

‎src/java.base/share/classes/java/lang/ClassLoader.java

+9-7
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,12 @@
133133
* It is the virtual machine's built-in class loader, typically represented
134134
* as {@code null}, and does not have a parent.</li>
135135
* <li><p>{@linkplain #getPlatformClassLoader() Platform class loader}.
136-
* All <em>platform classes</em> are visible to the platform class loader
137-
* that can be used as the parent of a {@code ClassLoader} instance.
138-
* Platform classes include Java SE platform APIs, their implementation
139-
* classes and JDK-specific run-time classes that are defined by the
140-
* platform class loader or its ancestors.
136+
* The platform class loader is responsible for loading the
137+
* <em>platform classes</em>. Platform classes include Java SE platform APIs,
138+
* their implementation classes and JDK-specific run-time classes that are
139+
* defined by the platform class loader or its ancestors.
140+
* The platform class loader can be used as the parent of a {@code ClassLoader}
141+
* instance.
141142
* <p> To allow for upgrading/overriding of modules defined to the platform
142143
* class loader, and where upgraded modules read modules defined to class
143144
* loaders other than the platform class loader and its ancestors, then
@@ -151,8 +152,9 @@
151152
* from the platform class loader.
152153
* The system class loader is typically used to define classes on the
153154
* application class path, module path, and JDK-specific tools.
154-
* The platform class loader is a parent or an ancestor of the system class
155-
* loader that all platform classes are visible to it.</li>
155+
* The platform class loader is the parent or an ancestor of the system class
156+
* loader, so the system class loader can load platform classes by delegating
157+
* to its parent.</li>
156158
* </ul>
157159
*
158160
* <p> Normally, the Java virtual machine loads classes from the local file

0 commit comments

Comments
 (0)
This repository has been archived.