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

systemTests should use PlatformLogger instead of java.util.logging

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: openjfx11
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
      None

      Description

      This is a follow-on issue to JDK-8195974.

      The fix for JDK-8195974 eliminated the dependency on the java.logging module from the javafx.* modules by replacing all calls to java.util.logging with calls to com.sun.javafx.logging.PlatformLogger, which is in javafx.base.

      A few of the systemTests -- in tests/system/src/test*/java -- still use j.u.l. These calls could be changed to use PlatformLogger with a fairly simple enhancement to that utility class. The system tests that still use j.u.l use a custom logging Handler.

      Adding logging Handler functionality should be pretty straight-forward. The easiest way to do this might be to add a log(Level, String, Object...) method, which would be called by all of the convenience methods, and then have that method call the custom log handler, if one is set.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kcr Kevin Rushforth
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: