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

PIT. ClassCastException thrown by isDesktopSupported method in headless mode

XMLWordPrintable

    • b51
    • generic
    • generic
    • Verified

      This occurs in AWT PIT build for mustang b49 on all platforms.

      Desktop.isDesktopSupported method throws ClassCastException in headless mode.

      java.lang.ClassCastException: sun.awt.HeadlessToolkit cannot be cast to sun.awt.SunToolkit
              at java.awt.Desktop.isDesktopSupported(Desktop.java:149)

      To reproduce:
      Run the attached testcase passing the command line option: -Djava.awt.headless=true

            denis Denis Fokin (Inactive)
            gramachasunw Girish Ramachandran (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: