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

KeyboardFocusManager.getCurrentKeyboardFocusManager() throws unspecified HeadlessException

    Details

    • Subcomponent:
    • Resolved In Build:
      b60
    • CPU:
      generic
    • OS:
      generic, linux
    • Verification:
      Verified

      Description

      The fix for 6806217 introduced the following failure reported in SDN comments.

      The testcase:

      public class Failure {
        public static void main(String[] args) {
          java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager();
        }
      }

      The problem:

      java -showversion -Djava.awt.headless=true Failure
      java version "1.7.0-ea"
      Java(TM) SE Runtime Environment (build 1.7.0-ea-b55)
      Java HotSpot(TM) 64-Bit Server VM (build 15.0-b05, mixed mode)

      Exception in thread "main" java.awt.HeadlessException
      at sun.awt.HeadlessToolkit.createKeyboardFocusManagerPeer(HeadlessToolkit.java:184)
      at java.awt.KeyboardFocusManager.initPeer(KeyboardFocusManager.java:454)
      at java.awt.KeyboardFocusManager.<init>(KeyboardFocusManager.java:448)
      at java.awt.DefaultKeyboardFocusManager.<init>(DefaultKeyboardFocusManager.java:64)
      at java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager(KeyboardFocusManager.java:218)
      at java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager(KeyboardFocusManager.java:209)
      at Failure.main(Failure.java:3)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ant Anton Tarasov
                Reporter:
                ant Anton Tarasov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: