[jdk21u-dev] RFR: 8351907: [XWayland] [OL10] Robot.mousePress() is delivered to wrong place

Goetz Lindenmaier goetz at openjdk.org
Mon Jul 21 11:56:57 UTC 2025


On Sun, 20 Jul 2025 10:00:36 GMT, Goetz Lindenmaier <goetz at openjdk.org> wrote:

> I backport this for parity with 21.0.9-oracle.
> 
> src/java.desktop/unix/classes/sun/awt/UNIXToolkit.java
> Resolved import.
> 
> src/java.desktop/unix/classes/sun/awt/X11/XRobotPeer.java
> Resolved because there is Security Manager coding in 21.
> 
> src/java.desktop/unix/classes/sun/awt/X11/XToolkit.java
> Copyright.
> 
> src/java.desktop/unix/classes/sun/awt/screencast/ScreencastHelper.java
> src/java.desktop/unix/classes/sun/awt/screencast/TokenStorage.java
> Resolved because there is Security Manager coding in 21.
> I adapted the code a bit as I saw:
> 
> src/java.desktop/unix/classes/sun/awt/screencast/TokenStorage.java:89: error: <identifier> expected
>         PROPS_PATH = AccessController
> 
> src/java.desktop/unix/native/libawt_xawt/awt/screencast_portal.c
> Copyright.

Hi @mbaesken,
I don't think I should remove the AccessController in 21. setupPath is called in 21, too.
This was removed by https://bugs.openjdk.org/browse/JDK-8344057: Remove doPrivileged calls from unix platform sources in the java.desktop module

This requieres JEP 486 : Permanently Disable the Security Manager

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

PR Comment: https://git.openjdk.org/jdk21u-dev/pull/1999#issuecomment-3096429167


More information about the jdk-updates-dev mailing list