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

Change the mechanism by which JDK loads the platform-specific AWT Toolkit

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9, 10, 11
    • Fix Version/s: 13
    • Component/s: client-libs
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      It was noted that JDK uses reflection on a class name located via a system property to locate the platform-specific AWT Toolkit class :

      The awt.toolkit property is read in java.awt.Toolkit.java
      and will be one of :
      "sun.awt.X11.XToolkit"
      "sun.lwawt.macosx.LWCToolkit"
      "sun.awt.windows.WToolkit"

      This requires java launcher support via the platform-specific
      java_props_md.c files to set the system property later read by
      java.awt.Toolkit

      Similar issues have been filed for PrinterJob & GraphicsEnvironment

      https://bugs.openjdk.java.net/browse/JDK-8130264 : java.awt.printerjob
      https://bugs.openjdk.java.net/browse/JDK-8130266 : java.awt.graphicsenv

      It would be good to be able to eliminate that.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                prr Philip Race
                Reporter:
                prr Philip Race
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: