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

Simplify/Replace com.sun.javafx.logging.PlatformLogger class & its usage

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: openjfx11
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      This bug has been created to address some of the valid review comments raised during review of JDK-8195799.

      In JavaFX codebase -
      1) com.sun.javafx.logging.PlatformLogger class was introduced while fixing JDK-8195799. Consider dropping com.sun.javafx.logging.PlatformLogger completely and directly use System.Logger instead.
      2) Use System.Logger.Levels instead of com.sun.javafx.logging.PlatformLogger.Levels

      Another suggestion is -
      In com.sun.javafx.logging.PlatformLogger class, we don't need the loggers map.
      getLogger() method can simply return - new PlatformLogger(System.getLogger(name));

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                aghaisas Ajit Ghaisas
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: