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

Alexey Ivanov aivanov at openjdk.org
Tue Jun 10 21:17:30 UTC 2025


On Tue, 10 Jun 2025 19:56:13 GMT, Damon Nguyen <dnguyen at openjdk.org> wrote:

>> It seems like there's a bug with this test when using it in a `PassFailJFrame`. When I move the `createUI` logic into a standalone java class's main method and add `setVisible(true)`, the test works as expected for all OS's except macOS.
>> 
>> 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 ?
>
> I have attached the standalone test to the issue. I tried altering how `ListDragCursor.java` creates the UI but it seems that no matter what I do, the cursor still updates after 1 second. I'm looking into what `PassFailJFrame` does differently at the moment.

I guess it's not the first time that we've encountered such an issue where using `PassFailJFrame` changes the behaviour of the test. Was it @TejeshR13's test?

I'm confused because `PassFailJFrame` does nothing more than provides a standard UI. It uses Swing components to display UI. Could this affect AWT components?

We have to look into what may cause the differences in behaviour.

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

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


More information about the client-libs-dev mailing list