java-21-openjdk/SOURCES/rh1648242-accessible_toolkit_crash_do_not_break_jvm.patch
eabdullin 932deebaf8 - Initial commit
- Source file was generated using by generate_source_tarball.sh
- tapsets-icedtea was taken from fedora
2023-10-09 17:25:41 +03:00

17 lines
674 B
Diff

diff -r 618ad1237e73 src/java.desktop/share/classes/java/awt/Toolkit.java
--- a/src/java.desktop/share/classes/java/awt/Toolkit.java Thu Jun 13 19:37:49 2019 +0200
+++ b/src/java.desktop/share/classes/java/awt/Toolkit.java Thu Jul 04 10:35:42 2019 +0200
@@ -595,7 +595,11 @@
toolkit = new HeadlessToolkit(toolkit);
}
if (!GraphicsEnvironment.isHeadless()) {
- loadAssistiveTechnologies();
+ try {
+ loadAssistiveTechnologies();
+ } catch (AWTError error) {
+ // ignore silently
+ }
}
}
return toolkit;