<AWT Dev> RFR: 8226806 [macOS 10.14] Methods of Java Robot should be called from appropriate thread
Sergey.Bylokhov at oracle.com
Fri Mar 13 09:59:49 UTC 2020
On 3/12/20 11:35 pm, Prasanta Sadhukhan wrote:
> Hi Sergey,
> Fix looks ok to me. BTW, you told it does not manifest in 10.15 but only 10.14. Can you confirm the present fix works in 10.15 too?
Yes it works.
> On 13-Mar-20 5:44 AM, Sergey Bylokhov wrote:
>> Any volunteers to review?
>> This could be a reason of test instability.
>> On 3/5/20 12:52 am, Sergey Bylokhov wrote:
>>> Please review the fix for jdk/client.
>>> Bug: https://bugs.openjdk.java.net/browse/JDK-8226806
>>> Fix: http://cr.openjdk.java.net/~serb/8226806/webrev.00
>>> On macOS 10.14(and not on 10.13/10.15) some of the Robot
>>> operations produce the warnings in the error log which
>>> suggests that the used API should be called on Appkit thread only.
>>> Some related information can be found here:
>>> The root cause in the case of Robot is the generation of
>>> keyboard events. To fix that, I have moved these methods to the
>>> Appkit, even mouse events to prevent races between event generations.
Best regards, Sergey.
More information about the awt-dev