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

[macos] java/awt/Focus/UnaccessibleChoice/AccessibleChoiceTest.java fails

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b10

      Backports

        Description

        Closed test java/awt/Focus/UnaccessibleChoice/AccessibleChoiceTest.java is failing in headful testing on macos

        java.lang.RuntimeException: Choice can't be controlled by keyboard
        at AccessibleChoiceTest.start(AccessibleChoiceTest.java:106)
        at AccessibleChoiceTest.main(AccessibleChoiceTest.java:33)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:832)

        A comment in https://bugs.openjdk.java.net/browse/JDK-7090905
        says :

        Test expects that key down would select a next choice item but on Mac in Aqua L&F it doesn't work that way. Here arrow keystroke open the Choice list and highlights the next item but actual selection requires another keystroke, Enter.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                serb Sergey Bylokhov
                Reporter:
                prr Philip Race
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: