The test was interrupted before new and pretty drop rejection animation is 
finished. In order to increase only the drop wait timeout the new method 
awaitDropFinished() is added. Since this method reads the finished value both 
reading and assigning of this value are moved under the Util.SYNC_LOCK to avoid 
thread race. The timeout for drop wait is set to 5 seconds. That can 
potentially increase time of the test execution by 4 seconds which is 
reasonable meaning the overall test duration.




---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - 8396627: [macos27] 
java/awt/dnd/InterJVMGetDropSuccessTest/InterJVMGetDropSuccessTest.java test 
fails

Changes: https://git.openjdk.org/jdk/pull/33780/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33780&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8396627
  Stats: 24 lines in 1 file changed: 19 ins; 2 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/33780.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/33780/head:pull/33780

PR: https://git.openjdk.org/jdk/pull/33780

Reply via email to