hg: jdk9/sandbox/jdk: 8145686: SimpleConsoleLogger and LogRecord should take advantage of StackWalker to skip classes implementing System.Logger

chris.hegarty at oracle.com chris.hegarty at oracle.com
Mon Dec 21 12:45:55 UTC 2015


Changeset: 117b25ef4717
Author:    dfuchs
Date:      2015-12-21 13:30 +0100
URL:       http://hg.openjdk.java.net/jdk9/sandbox/jdk/rev/117b25ef4717

8145686: SimpleConsoleLogger and LogRecord should take advantage of StackWalker to skip classes implementing System.Logger
Summary: methods defined on classes implementing System.Logger will be skipped when looking for the calling method.
Reviewed-by: mchung

! src/java.base/share/classes/jdk/internal/logger/SimpleConsoleLogger.java
! src/java.logging/share/classes/java/util/logging/LogRecord.java
! test/java/lang/System/Logger/default/DefaultLoggerTest.java
! test/java/lang/System/LoggerFinder/internal/BaseDefaultLoggerFinderTest/BaseDefaultLoggerFinderTest.java



More information about the jdk9-sandbox-changes mailing list