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

Toolkit.getDefaultToolkit() contradicts the spec for headless environments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • client-libs
    • b24
    • sparc
    • solaris
    • Verified

      The spec for Toolkit.getDefaultToolkit() states:

        Gets the default toolkit.

        If there is a system property named "awt.toolkit", that property is treated as the
        name of a class that is a subclass of Toolkit.

        If the system property does not exist, then the default toolkit used is the class
        named "sun.awt.motif.MToolkit", which is a motif implementation of the Abstract
        Window Toolkit.

      The implementation works differently if JDK is run on Solaris in headless mode (with
      "-Djava.awt.headless=true"). The system property doesn't exist, but the returned toolkit
      is always an instance of sun.awt.HeadlessToolkit.
      ###@###.### 10/28/04 03:01 GMT

            son Oleg Sukhodolsky (Inactive)
            savzan Stanislav Avzan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: