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

j.a/List/KeyEventsTest/KeyEventsTest: TestState currentState is not thread-safe

XMLWordPrintable

      The java/awt/List/KeyEventsTest/KeyEventsTest.java test uses `TestState` object to keep track of the state which is stored in `currentState` field.

      The object in `currentState` is accessed from different threads that modify its fields without additional synchronisation which is not thread-safe.

      This is found in the code review for JDK-8339561:
      https://github.com/openjdk/jdk/pull/20861#discussion_r1750819337

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

              Created:
              Updated: