RFR: 8359061: Update and ProblemList manual test java/awt/Cursor/CursorDragTest/ListDragCursor.java [v2]

Harshitha Onkar honkar at openjdk.org
Wed Jun 11 05:18:27 UTC 2025


On Wed, 11 Jun 2025 05:08:29 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:

>> test/jdk/java/awt/Cursor/CursorDragTest/ListDragCursor.java line 52:
>> 
>>> 50:                 pass the test. This test fails if the cursor updates
>>> 51:                 when pointing over the different components before
>>> 52:                 dragging is complete.
>> 
>> The new instructions doesn't seem to hold true when I tested on windows.
>> Additionally the instructions require rephrasing for clarity?
>
>> In this PassFailJFrame it looks like it "works" correctly for 1 second, and then the cursor updates anyway afterwards. I'm going to try to look into why this is, but is this what you are seeing too @honkar-jdk ?
> 
> Looks like there are 3 scenarios here and based on how fast or slow the cursor is moved and cursor update.
> 
> 1) Move the cursor without mouse drag (i.e without clicking left mouse btn). The cursor update is immediate.
> 
> 2) Move the cursor quickly across the components with mouse drag (i.e with left mouse btn pressed) The cursor updates when you are midway into the components which implies cursor update is slow but it ultimately shows the correct cursor.
> 
> 3) Move the cursor slowly across the components with mouse drag (i.e with left mouse btn pressed) cursor does get updated on entering the components as expected similar to case 1.
> 
> I'm probably guessing the mouse drag action creates a delay in how soon the cursor is updated.

In addition to that the cursor type gets updated irrespective of whether the left mouse button is released or pressed when it is dragged from text area to list. 
I'm not sure if this is the expected behavior or a bug?

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

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


More information about the client-libs-dev mailing list