JDK-8209036 : systemTests should use PlatformLogger instead of java.util.logging
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: other
  • Affected Version: jfx11
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2018-08-06
  • Updated: 2023-11-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
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.
Comments
Here is the list of files in the systemTests project that use java.util.logging: tests/system/src/test/java/test/com/sun/javafx/sg/prism/RT36296Test.java tests/system/src/test/java/test/com/sun/marlin/ClipShapeTest.java tests/system/src/test/java/test/com/sun/marlin/QPathTest.java tests/system/src/testapp3/java/mymod/module-info.java tests/system/src/testapp3/java/mymod/myapp3/AppTableViewExported.java tests/system/src/testapp3/java/mymod/myapp3/AppTableViewOpened.java tests/system/src/testapp3/java/mymod/myapp3/AppTableViewQualExported.java tests/system/src/testapp3/java/mymod/myapp3/AppTableViewQualOpened.java tests/system/src/testapp3/java/mymod/myapp3/AppTableViewUnexported.java tests/system/src/testapp3/java/mymod/myapp3/AppTreeTableViewExported.java tests/system/src/testapp3/java/mymod/myapp3/AppTreeTableViewOpened.java tests/system/src/testapp3/java/mymod/myapp3/AppTreeTableViewQualExported.java tests/system/src/testapp3/java/mymod/myapp3/AppTreeTableViewQualOpened.java tests/system/src/testapp3/java/mymod/myapp3/AppTreeTableViewUnexported.java tests/system/src/testapp4/java/mymod/module-info.java tests/system/src/testapp4/java/mymod/myapp4/AppBindingsQualExported.java tests/system/src/testapp4/java/mymod/myapp4/AppBindingsUnexported.java
06-08-2018