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

Toolkit.isAlwaysOnTopSupported returns true for headless toolkit

XMLWordPrintable

    • b09
    • generic
    • generic
    • Verified

      Toolkit.isAlwaysOnTopSupported() returns true when called from an application executed with java.awt.headless=true flag. Headless toolkit should not claim this as supported and should appropriately override this method to return false.

      This is reproducible on JDK6/JDK7 on all platforms. This is a newly introduced API in JDK6.

      Run the attached test with the headless flag to reproduce the bug.

            art Artem Ananiev (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: