On Thu, 12 Jun 2025 23:33:46 GMT, Damon Nguyen <dngu...@openjdk.org> wrote:

>> This change is to restore the original intent of the test by updating the 
>> instructions to check that the type of Cursor is preserved when clicked and 
>> dragged. Now the test correctly has instructions to check that an I-beam 
>> cursor stays an I-beam until released over a List with its cursor being 
>> updated to a Hand cursor.
>> 
>> There is a bug where this does not correctly update in macOS (found in 
>> [JDK-7177297](https://bugs.openjdk.org/browse/JDK-7177297)). So, this test 
>> needs to be problem-listed.
>> 
>> I have confirmed that preserving the cursor image when dragging is native 
>> behavior across macOS, Windows, and Ubuntu. And I have checked that the test 
>> passes on both Windows and Ubuntu, while macOS fails and immediately updates 
>> the cursor as it leaves the TextArea.
>
> Damon Nguyen has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Update test to avoid PFJ

test/jdk/java/awt/Cursor/CursorDragTest/ListDragCursor.java line 49:

> 47:     public static CountDownLatch createCountDownLatch() {
> 48:         return new CountDownLatch(1);
> 49:     }

`countDownLatch = new CountDownLatch(1);` can be directly assigned in main, no 
need of the extra method.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25705#discussion_r2143997558

Reply via email to