RFR: 8150564: Migrate useful ExtendedRobot methods into awt.Robot [v2]
Damon Nguyen
dnguyen at openjdk.org
Fri Aug 29 00:24:01 UTC 2025
On Thu, 28 Aug 2025 06:25:47 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
>> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Make vars static
>
> src/java.desktop/share/classes/java/awt/Robot.java line 970:
>
>> 968: * @since 26
>> 969: */
>> 970: public synchronized void type(int keycode) {
>
> Is there any reason why this method is synchronized? Do we want to support mutithreaded execution of these methods?
Other similar methods are synchronized as well. I don't see an issue with this one in particular not being synchronized as well.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26969#discussion_r2308834015
More information about the client-libs-dev
mailing list