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

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

XMLWordPrintable

    • b21

      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.

            prr Philip Race
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: