RFR: 8361521 : BogusFocusableWindowState.java fails with StackOverflowError on Linux
Anass Baya
abaya at openjdk.org
Thu Jul 31 14:21:33 UTC 2025
On Tue, 15 Jul 2025 02:52:54 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> I do not think this is a bug in the test, the jdk should survive this.
Hello @mrserb,
Thank you for your reivew.
To ensure Linux survives that, I think we need to avoid updating focusability when it is not necessary.
--- XWindowPeer.java
+++ XWindowPeer.java
@Override
public void setVisible(boolean vis) {
+ if(isVisible() == vis) {
+ return;
+ }
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26298#issuecomment-3140169438
More information about the client-libs-dev
mailing list