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

Consider using a latch in Focus/RowToleranceTransitivityTest.java

XMLWordPrintable

    • b20
    • 21

      The java/awt/Focus/RowToleranceTransitivityTest.java test uses an AtomicBoolean to pass value between EDT and main thread.

      At the same time, the test uses synchronized blocks on the instance of AtomicBoolean.

      Then the test adds a global focus listener to ComboBox, and it may add it again in `setFocusOn`.

      Overall, the test could be simplified.

            aivanov Alexey Ivanov
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: