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

HeaderButtonMetrics should not be used across toolkit boundary

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • jfx25
    • jfx25
    • javafx
    • None

      The record `com.sun.glass.ui.HeaderButtonMetrics` is used in the Glass toolkit, but also in the FX layer (in Stage and HeaderBar). This is architectually unsound, as the FX layer should not directly reference the Glass implementation.

      The solution here is to introduce another record that is used in the FX layer, and translate between the Glass/FX types in the toolkit layer.

            mstrauss Michael Strauß
            mstrauss Michael Strauß
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: