On Sun, 15 Nov 2026 09:47:28 GMT, Prasanta Sadhukhan <[email protected]> 
wrote:

>> Test intermittently fails in linux citing cursor is not RESIZE cursor at 
>> tableheader cell boundary when the mouse is moved from one table header cell 
>> to another.
>>  Although I am not able to get the test to fail locally or in CI standalone 
>> but it seems the test can potentially fail as it moves the mouse across the 
>> header and checks the cursor whenever the mouse enters another column but 
>> the problem is that entering another column doesn’t always mean the cursor 
>> should be a resize cursor. The resize cursor appears only very close to the 
>> boundary. On Linux, some mouse movements may be combined or skipped, so the 
>> test can receive a position already past the boundary. The normal cursor is 
>> correct there, but the test reports a failure.
>> 
>> The test is made more robust:
>> - Stops exactly at each column boundary and waits for mouse events to be 
>> processed.
>> - Checks that the resize cursor is already set when the boundary’s rollover 
>> callback rolloverColumnUpdated() runs.
>> - Checks that the normal cursor returns inside a column.
>> - ui.prepare() ensures at which point mouse is expected, whether resize 
>> cursor is expected, clear the event flags and records failure
>> - Logs the actual mouse coordinates to help explain any future failure.
>> - Also magic number 9 is removed
>> 
>> This makes the test more robust because it checks the cursor at known 
>> positions, instead of assuming where the mouse was when a column change was 
>> reported. It still detects the original cursor-update problem
>> 
>> 100 iterations in linux and other platforms were run and seen to be ok..
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Prasanta Sadhukhan has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Add volatile

Marked as reviewed by azvegint (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/33866#pullrequestreview-6019998503

Reply via email to