This fixes a bug in XAWT that prevents selecting non existent element in the 
List.
It was extracted from the https://github.com/openjdk/jdk/pull/27682, see 
"Description of how invalid indexes are handled on other platforms:" section in 
that PR description.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - 8369455: XAWT: List.getSelectedItem may throw ArrayIndexOutOfBoundsException
 - Delete java/awt/List/ListSelection/SelectInvalidTest.java from the 
ProblemList

Changes: https://git.openjdk.org/jdk/pull/30992/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30992&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8369455
  Stats: 9 lines in 3 files changed: 2 ins; 1 del; 6 mod
  Patch: https://git.openjdk.org/jdk/pull/30992.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/30992/head:pull/30992

PR: https://git.openjdk.org/jdk/pull/30992

Reply via email to