RFR: 8150564: Migrate useful ExtendedRobot methods into awt.Robot [v22]

Phil Race prr at openjdk.org
Tue Jul 8 19:09:03 UTC 2025


On Thu, 3 Jul 2025 15:55:23 GMT, Alisen Chung <achung at openjdk.org> wrote:

>> Some useful methods in ExtendedRobot should be migrated into Robot itself so that ExtendedRobot can be removed in the future. The tests using ExtendedRobot for these migrated methods are changed to use only Robot (removing unnecessary building of ExtendedRobot).
>
> Alisen Chung has updated the pull request incrementally with one additional commit since the last revision:
> 
>   remove ER from remaining modal test

src/java.desktop/share/classes/java/awt/Robot.java line 130:

> 128: 
> 129:     /**
> 130:      * Default delay for mouse {@code click} and

Default delay .. in milliseconds ..

src/java.desktop/share/classes/java/awt/Robot.java line 791:

> 789:      * A convenience method that simulates clicking a mouse button by calling {@code mousePress}
> 790:      * and {@code mouseRelease}. Invokes {@code waitForIdle} with a default {@link #DEFAULT_DELAY delay} after
> 791:      * {@code mousePress} and {@code mouseRelease} calls. For specifics on valid inputs please see

I think in a spec, we can drop "please".

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22044#discussion_r2193215015
PR Review Comment: https://git.openjdk.org/jdk/pull/22044#discussion_r2193196633


More information about the client-libs-dev mailing list