jdk/test/java/util/logging/Logger/getGlobal/policy
author dfuchs
Tue, 02 Jul 2013 19:47:58 +0200
changeset 18595 c6f81d76027a
child 19825 a7e79bc2e437
permissions -rw-r--r--
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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
18595
c6f81d76027a 7184195: java.util.logging.Logger.getGlobal().info() doesn't log without configuration
dfuchs
parents:
diff changeset
     1
grant {
c6f81d76027a 7184195: java.util.logging.Logger.getGlobal().info() doesn't log without configuration
dfuchs
parents:
diff changeset
     2
    permission java.util.PropertyPermission "java.util.logging.config.file", "write";
c6f81d76027a 7184195: java.util.logging.Logger.getGlobal().info() doesn't log without configuration
dfuchs
parents:
diff changeset
     3
    permission java.util.PropertyPermission "test.src", "read";
c6f81d76027a 7184195: java.util.logging.Logger.getGlobal().info() doesn't log without configuration
dfuchs
parents:
diff changeset
     4
    permission java.lang.RuntimePermission "setContextClassLoader";
c6f81d76027a 7184195: java.util.logging.Logger.getGlobal().info() doesn't log without configuration
dfuchs
parents:
diff changeset
     5
    permission java.lang.RuntimePermission "shutdownHooks";
c6f81d76027a 7184195: java.util.logging.Logger.getGlobal().info() doesn't log without configuration
dfuchs
parents:
diff changeset
     6
    permission java.util.logging.LoggingPermission "control";
c6f81d76027a 7184195: java.util.logging.Logger.getGlobal().info() doesn't log without configuration
dfuchs
parents:
diff changeset
     7
};