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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx11
    • javafx
    • None
    • generic
    • generic

      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));

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

              Created:
              Updated: