src/share/classes/java/util/logging/Logger.java

Print this page

        

*** 1729,1742 **** // that a suitable ResourceBundle exists before setting the // resourceBundleName field. // Synchronized to prevent races in setting the fields. private synchronized void setupResourceInfo(String name, Class<?> callersClass) { - if (name == null) { - return; - } - if (resourceBundleName != null) { // this Logger already has a ResourceBundle if (resourceBundleName.equals(name)) { // the names match so there is nothing more to do --- 1729,1738 ----
*** 1746,1755 **** --- 1742,1755 ---- // cannot change ResourceBundles once they are set throw new IllegalArgumentException( resourceBundleName + " != " + name); } + if (name == null) { + return; + } + setCallersClassLoaderRef(callersClass); if (findResourceBundle(name, true) == null) { // We've failed to find an expected ResourceBundle. // unset the caller's ClassLoader since we were unable to find the // the bundle using it