java-21-openjdk-portable/rh1648242-accessible_toolkit_crash_do_not_break_jvm.patch
Petra Mikova 110204edec Update of the package to OpenJDK 13
Adapted patches, spec and uploaded new sources
2019-07-09 10:59:30 +02: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;