[jdk11u-dev] Integrated: 8272966: test/jdk/java/awt/Robot/FlushCurrentEvent.java fails by timeout
Sergey Bylokhov
serb at openjdk.java.net
Fri Sep 10 17:43:02 UTC 2021
On Thu, 2 Sep 2021 22:38:42 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> The test case backported by the [JDK-8267722](https://bugs.openjdk.java.net/browse/JDK-8267722) is too strict for jdk11. It uses the `Robot.delay()` method which is `synchronised` in jdk11 and this caused a deadlock.
>
> Main thread: `synchronized robot.waitForIdle()` - > trying to synchronously execute the code on EDT
> EDT: trying to call `synchronized Robot.delay()`
>
> The synchronized keyword was removed by the [JDK-8210231](https://bugs.openjdk.java.net/browse/JDK-8210231) in JDK15 and it cannot be backported due to compatibility reasons.
>
> The solution is to relax this part of the test which does not affect its ability to verify the fix for JDK-8196100
This pull request has now been integrated.
Changeset: 180bc526
Author: Sergey Bylokhov <serb at openjdk.org>
URL: https://git.openjdk.java.net/jdk11u-dev/commit/180bc526b025e815b43070150369ae399e27753f
Stats: 9 lines in 1 file changed: 7 ins; 0 del; 2 mod
8272966: test/jdk/java/awt/Robot/FlushCurrentEvent.java fails by timeout
Reviewed-by: clanger
-------------
PR: https://git.openjdk.java.net/jdk11u-dev/pull/309
More information about the jdk-updates-dev
mailing list