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

java.awt.Desktop feature is "intermittently" supported on Solaris. Really unexpected behavior.

    Details

    • Subcomponent:
    • Resolved In Build:
      b132
    • CPU:
      x86
    • OS:
      solaris
    • Verification:
      Verified

      Description

      The answer to the question "Desktop.isDesktopSupported()" is not always the same for the same implementation executed on the same system.

      OS: Solaris, i586
      Machine: zenit.russia.sun.com
      JDK: 6, 7


      import java.awt.*;
      public class DSupport {
          public static void main(String[] args) {
              System.out.println("Desktop.isDesktopSupported() = " + Desktop.isDesktopSupported());
          }
      }

      If executed like about 300 times - among "true" answers, several "false" results appear

      <db158260@zenit(pts/6).347> for i in {1..300}; do /net/zenit/export/users/db158260/jdk/solaris-i586/6u21/jdk1.6.0_21/bin/java -cp . DSupport; done
      Desktop.isDesktopSupported() = true
      Desktop.isDesktopSupported() = true
      Desktop.isDesktopSupported() = true
      Desktop.isDesktopSupported() = true
      Desktop.isDesktopSupported() = true
      Desktop.isDesktopSupported() = true
      Desktop.isDesktopSupported() = true
      Desktop.isDesktopSupported() = true
      Desktop.isDesktopSupported() = true
      Desktop.isDesktopSupported() = true
      Desktop.isDesktopSupported() = true
      Desktop.isDesktopSupported() = true
      Desktop.isDesktopSupported() = false
      Desktop.isDesktopSupported() = false
      Desktop.isDesktopSupported() = true
      Desktop.isDesktopSupported() = true
      Desktop.isDesktopSupported() = true
      Desktop.isDesktopSupported() = true
      ...

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dav Andrei Dmitriev (Inactive)
                Reporter:
                dbessono Dmitry Bessonov
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: