Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8345258

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • 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.

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

              Created:
              Updated: