RFR: 8361521 : BogusFocusableWindowState.java fails with StackOverflowError on Linux
Anass Baya
abaya at openjdk.org
Mon Jul 14 23:02:38 UTC 2025
On Mon, 14 Jul 2025 21:47:10 GMT, Alisen Chung <achung at openjdk.org> wrote:
>> **Analysis:**
>> The getFocusableWindowState() method is not intended to modify the configuration; doing so can cause recursive re-entry on Linux.
>>
>> **Proposed Fix:**
>> We are intentionally overriding getFocusableWindowState() to allow it to change the configuration, in order to verify that calling getScreenImOn() for ownerless windows does not throw any exceptions.
>> To prevent recursive re-entry, we use a flag to ensure that getFocusableWindowState() is executed only once
>
> After this test fix does the test fail if you undo [JDK-8346952](https://github.com/openjdk/jdk/pull/25619)?
Hello @alisenchung,
Yes we can reproduce the issue using this updated test
BR,
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26298#issuecomment-3071278002
More information about the client-libs-dev
mailing list