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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: