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

PIT. ClassCastException thrown by isDesktopSupported method in headless mode

    Details

    • Subcomponent:
    • Resolved In Build:
      b51
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: