hg: jdk8/tl/jdk: 7184195: java.util.logging.Logger.getGlobal().info() doesn't log without configuration
daniel.fuchs at oracle.com
daniel.fuchs at oracle.com
Tue Jul 2 11:26:15 PDT 2013
Changeset: 70bff2d12af0
Author: dfuchs
Date: 2013-07-02 19:47 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/70bff2d12af0
7184195: java.util.logging.Logger.getGlobal().info() doesn't log without configuration
Summary: Due to subtle synchronization issues between LogManager & Logger class initialization the global logger doesn't have its 'manager' field initialized until the LogManager is initialized. This fix will ensure that the global logger has its 'manager' field set when getGlobal() is called.
Reviewed-by: mchung, plevart
! src/share/classes/java/util/logging/LogManager.java
! src/share/classes/java/util/logging/Logger.java
+ test/java/util/logging/Logger/getGlobal/TestGetGlobal.java
+ test/java/util/logging/Logger/getGlobal/TestGetGlobalByName.java
+ test/java/util/logging/Logger/getGlobal/TestGetGlobalConcurrent.java
+ test/java/util/logging/Logger/getGlobal/logging.properties
+ test/java/util/logging/Logger/getGlobal/policy
+ test/java/util/logging/Logger/getGlobal/testgetglobal/BadLogManagerImpl.java
+ test/java/util/logging/Logger/getGlobal/testgetglobal/DummyLogManagerImpl.java
+ test/java/util/logging/Logger/getGlobal/testgetglobal/HandlerImpl.java
+ test/java/util/logging/Logger/getGlobal/testgetglobal/LogManagerImpl1.java
+ test/java/util/logging/Logger/getGlobal/testgetglobal/LogManagerImpl2.java
+ test/java/util/logging/Logger/getGlobal/testgetglobal/LogManagerImpl3.java
More information about the compiler-dev
mailing list