# HG changeset patch # User dfuchs # Date 1394651927 -3600 # Node ID d7a41da68b8534b141d3137808f6eb626e16964a # Parent b9e3bcefc5224bcfd0b47fab1e0c80449dab8855 8036916: Deprecation warnings in LogManager Reviewed-by: mchung diff -r b9e3bcefc522 -r d7a41da68b85 jdk/src/share/classes/java/util/logging/LogManager.java --- a/jdk/src/share/classes/java/util/logging/LogManager.java Wed Mar 12 21:45:20 2014 +0400 +++ b/jdk/src/share/classes/java/util/logging/LogManager.java Wed Mar 12 20:18:47 2014 +0100 @@ -570,7 +570,7 @@ // the context requires default loggers, will be added to the context // logger's tree. final Logger getGlobalLogger() { - @SuppressWarnings("deprecated") // avoids initialization cycles. + @SuppressWarnings("deprecation") // avoids initialization cycles. final Logger global = Logger.global; return global; } @@ -642,7 +642,7 @@ // method be called for anything else than Logger.global // or owner.rootLogger. if (!requiresDefaultLoggers() || logger == null - || logger != Logger.global && logger != LogManager.this.rootLogger) { + || logger != getGlobalLogger() && logger != LogManager.this.rootLogger ) { // the case where we have a non null logger which is neither // Logger.global nor manager.rootLogger indicates a serious