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

Static methods of java.awt.EventQueue not working headless need to be documented

XMLWordPrintable

    • Cause Known
    • generic
    • generic



      Name: osR10079 Date: 01/09/2003

      All static methods of EventQueue (such as invokeAndWait()
      and invokeLater()) use system event queue and system toolkit. This
      means that an application which uses these methods won't work in
      headless environment with non-headless toolkit.

      For these methods it is not immediately obvious that they can't
      work in headless environment (i.e. without valid display) but not in
      headless mode. Users may think that these methods do not actually
      require a display. Please see bug id 4798211 (EventQueue.invokeLater
      requires use of X11) for the example of difficulties that the users
      face on that way.

      In JavaDoc comments for these methods we need to somehow inform the
      user that if one wants to call these methods in headless environment,
      it must be done in headless mode.

      ======================================================================

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

              Created:
              Updated:
              Imported:
              Indexed: