WebView wv = new WebView(); throws an exception
Davide Perini
perini.davide at dpsoftware.org
Sat Oct 4 16:10:58 UTC 2025
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?
More information about the openjfx-discuss
mailing list