[re-routing to openjfx-dev]
Technical questions should be discussed on openjfx-dev.
There isn't enough information to be sure, but you might double-check
whether you are creating the WebView on the JavaFX application thread.
If not, you are running into a known bug, JDK-8087718 [1].
-- Kevin
[1] https://bugs.openjdk.org/browse/JDK-8087718
On 10/4/2025 9:10 AM, Davide Perini wrote:
Hi there,
I noticed recently that this code
WebView wv = new WebView();
throws an exception that creates no real problem but it is a bit annoyng.
The exception is thrown here:
class PropertyHelper {
static boolean getBooleanProperty(String var0) {
try {
String var1 = System.getProperty(var0);
return "true".equals(var1.toLowerCase());
} catch (Exception var2) {
return false;
}
}
}
If I manually set
System.setProperty("javafx.sg.warn", "true");
this exception is not thrown.
But why?