-
CSR
-
Resolution: Approved
-
P4
-
None
-
minimal
-
Java API
-
SE
Summary
UIDefaults.addResourceBundle() wrongly uses "application" classloader in the doc wording, whereas it should use "system" classloader
Problem
The system class loader can differ to the application class loader when there is a custom system class loader configured, so we should be proper in specifying the correct classloader.
Solution
Rectified the doc wording to use "system" classloder
src/java.desktop/share/classes/javax/swing/UIDefaults.java:
Specification
* Adds a resource bundle to the list of resource bundles that are
* searched for localized values. Resource bundles are searched in
* the reverse order they were added, using the
* {@linkplain ClassLoader#getSystemClassLoader system class loader}.
* In other words, the most recently added bundle is searched first.
*
* @param bundleName the base name of the resource bundle to be added
- csr of
-
JDK-8184244 UIDefaults.addResourceBundle uses system class loader
-
- Resolved
-