RFR: 8367784: java/awt/Focus/InitialFocusTest/InitialFocusTest1.java failed with Wrong focus owner [v3]
Harshitha Onkar
honkar at openjdk.org
Thu Sep 18 17:33:26 UTC 2025
On Thu, 18 Sep 2025 17:19:56 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:
>> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>>
>> lambda Fix
>
> test/jdk/java/awt/Focus/InitialFocusTest/InitialFocusTest1.java line 69:
>
>> 67: // wait for the very very last focus event
>> 68: robot.delay(1000);
>> 69: if (app.button2 != focused) {
>
> Since it is object comparison is it better to use` !app.button2.equals(focused)`?
Although `!=` would work in this case since the intent is to compare the referenced object.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27332#discussion_r2360441502
More information about the client-libs-dev
mailing list