JDK-8348299 : Update List/ItemEventTest/ItemEventTest.java
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 24,25
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-01-22
  • Updated: 2025-03-12
  • Resolved: 2025-01-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17 JDK 21 JDK 24 JDK 25
11.0.28-oracleFixed 17.0.16-oracleFixed 21.0.8-oracleFixed 24.0.2Fixed 25 b08Fixed
Related Reports
Relates :  
Description
I found a few problems when I looked at the java/awt/List/ItemEventTest/ItemEventTest.java test to see what's going on in JDK-8204221.

1. The java/awt/List/ItemEventTest/ItemEventTest.java test uses StringBuilder to store the string which keeps track of selecting and deselecting items in the list.

The object of StringBuilder is used across two threads, which is not thread-safe.

2. The java/awt/List/ItemEventTest/ItemEventTest.java test fails in CI on some hosts, JDK-8204221, therefore adding logging and screenshots could help identify the root cause.
Comments
Fix request [17u,21u] I backport this for parity with 17.0.16-oracle,21.0.8-oracle. No risk, only a test change Clean backport. Test passes. SAP nightly testing passed.
06-03-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/3327 Date: 2025-03-05 15:33:21 +0000
05-03-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk21u-dev/pull/1452 Date: 2025-03-05 15:33:04 +0000
05-03-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk24u/pull/34 Date: 2025-01-24 20:24:20 +0000
24-01-2025

Fix request for 24u This fix makes the `java/awt/List/ItemEventTest/ItemEventTest.java` test more stable and provides more details for failure analysis. Risk: Low Pull request for 24u: https://github.com/openjdk/jdk24u/pull/34
24-01-2025

Changeset: 605b53e4 Branch: master Author: Alexey Ivanov <aivanov@openjdk.org> Date: 2025-01-23 15:18:38 +0000 URL: https://git.openjdk.org/jdk/commit/605b53e4f8857c58a72fa361f8787c563d6dab90
23-01-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/23238 Date: 2025-01-22 16:45:17 +0000
22-01-2025