Refactor inferCaller() / getCallerInfo() to use java.util.stream.Gatherers

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      java.util.logging.LogRecord.inferCaller() and jdk.internal.logger.SimpleConsoleLogger.getCallerInfo() could be refactored to use java.util.streams.Gatherers instead of a stateful filter.

      At the same time, there's a comment in jdk.internal.logger.LazyLoggers that talks about `doPrivileged`. That comment could be removed.

            Assignee:
            Daniel Fuchs
            Reporter:
            Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: