JDK-8307779 : Relax the java.awt.Robot specification
  • Type: Bug
  • Component: client-libs
  • Affected Version: 21
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-05-09
  • Updated: 2024-08-29
  • Resolved: 2023-05-18
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 8 Other
11.0.0.2Fixed 17.0.0.1Fixed 21 b24Fixed 8u431Fixed openjdk8u432Fixed
Related Reports
Blocks :  
CSR :  
Duplicate :  
Relates :  
Relates :  
Sub Tasks
JDK-8339211 :  
Description
We need to relax the java.awt.Robot specification according to the latest operating system trends.
This should at least cover the case of Wayland, which has changed many familiar concepts in Linux.


https://bugs.openjdk.org/browse/JDK-8280982 [Wayland] [XWayland] java.awt.Robot taking screenshots
https://bugs.openjdk.org/browse/JDK-8280995 [XWayland] Robot.mouseMove does not visually move mouse cursor
https://bugs.openjdk.org/browse/JDK-8280990 [XWayland] XTest emulated mouse click does not bring window to front.
https://bugs.openjdk.org/browse/JDK-8280988 [XWayland] Click on title to request focus test failures

Comments
[~azvegint] Approved for the October release.
23-07-2024

[~aph][~aph][~sgehwolf] Could someone please approve my jdk8u-fix-request before July 25th?
22-07-2024

Fix Request 8u In November 2023, Red Hat announced that RHEL 10 (GA May 2025) will remove the X.org display server, To support headful JDKs on RH/OL 10 in LTS releases prior to Java SE 21, we need Maintenance Releases to relax the java.awt.Robot specification https://github.com/openjdk/jdk8u-dev/pull/549 Minor merge, conflict part of the fix was already there(checkScreenCaptureAllowed in getPixelColor).
16-07-2024

Fix Request 11u In November 2023, Red Hat announced that RHEL 10 (GA May 2025) will remove the X.org display server, To support headful JDKs on RH/OL 10 in LTS releases prior to Java SE 21, we need Maintenance Releases to relax the java.awt.Robot specification https://github.com/openjdk/jdk11u-dev/pull/2860 There was a minor merge conflict, including copyright years and unrelated code differences, part of the fix was already there(checkScreenCaptureAllowed in getPixelColor).
16-07-2024

Fix Request 17u In November 2023, Red Hat announced that RHEL 10 (GA May 2025) will remove the X.org display server, To support headful JDKs on RH/OL 10 in LTS releases prior to Java SE 21, we need Maintenance Releases to relax the java.awt.Robot specification The backport is clean (https://github.com/openjdk/jdk17u-dev/pull/2718).
16-07-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk11u-dev/pull/2860 Date: 2024-07-16 10:10:14 +0000
16-07-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/2718 Date: 2024-07-16 09:57:48 +0000
16-07-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk8u-dev/pull/549 Date: 2024-07-16 09:55:04 +0000
16-07-2024

Implementation changes for JDK-8307779
21-06-2024

Fix Request 8u44 In November 2023, Red Hat announced that RHEL 10 (GA May 2025) will remove the X.org display server, To support headful JDKs on RH/OL 10 in LTS releases prior to Java SE 21, we need Maintenance Releases to relax the java.awt.Robot specification The change was approved (https://github.com/openjdk/jdk8u-ri/pull/15).
25-04-2024

Fix Request 11.0.0.2 In November 2023, Red Hat announced that RHEL 10 (GA May 2025) will remove the X.org display server, To support headful JDKs on RH/OL 10 in LTS releases prior to Java SE 21, we need Maintenance Releases to relax the java.awt.Robot specification The change was approved (https://github.com/openjdk/jdk11u-ri/pull/10).
25-04-2024

Fix Request 17.0.0.1 In November 2023, Red Hat announced that RHEL 10 (GA May 2025) will remove the X.org display server, To support headful JDKs on RH/OL 10 in LTS releases prior to Java SE 21, we need Maintenance Releases to relax the java.awt.Robot specification The change was approved (https://github.com/openjdk/jdk17u-ri/pull/3).
25-04-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk8u-ri/pull/15 Date: 2024-04-24 18:19:13 +0000
24-04-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-ri/pull/10 Date: 2024-04-24 18:10:47 +0000
24-04-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-ri/pull/3 Date: 2024-04-18 21:13:04 +0000
18-04-2024

Changeset: 21aa057f Author: Alexander Zvegintsev <azvegint@openjdk.org> Date: 2023-05-18 18:14:05 +0000 URL: https://git.openjdk.org/jdk/commit/21aa057fafd88f4dd677bbf7c99a7eabb6b18409
18-05-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/13809 Date: 2023-05-04 16:26:47 +0000
09-05-2023