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

Alisen Chung achung at openjdk.org
Thu Aug 7 19:11:39 UTC 2025


On Thu, 7 Aug 2025 17:22:49 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:

>> Alisen Chung has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   update robot spec
>
> test/jdk/lib/client/ExtendedRobot.java line 158:
> 
>> 156:      * @see     #dragAndDrop(int, int, int, int)
>> 157:      */
>> 158:     public void dragAndDrop(Point from, Point to){
> 
> I missed that earlier. Why didn't we also move the `dragAndDrop` methods to `java.awt.Robot`?
> This would allow us to remove the ExtendedRobot class entirely.

When I ran tests earlier to see which ExtendedRobot methods were used previously i found that dragAndDrop was never used by any tests, so I decided not to migrate it. It might be better to just remove it all outright and I might do that in a followup PR to remove ExtendedRobot entirely (along with moving the rest of the tests using ER)

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

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


More information about the client-libs-dev mailing list