java-1.8.0-openjdk/SOURCES/rh1648242-accessible_toolkit_crash_do_not_break_jvm.patch

17 lines
636 B
Diff
Raw Normal View History

2023-05-11 11:29:53 +00:00
diff -uNr openjdk-orig/jdk/src/share/classes/java/awt/Toolkit.java jdk8/jdk/src/share/classes/java/awt/Toolkit.java
--- openjdk-orig/jdk/src/share/classes/java/awt/Toolkit.java 2009-01-23 11:59:47.000000000 -0500
+++ jdk8/jdk/src/share/classes/java/awt/Toolkit.java 2009-01-23 12:05:20.000000000 -0500
@@ -883,7 +883,11 @@
2023-05-11 11:20:44 +00:00
return null;
}
});
2023-05-11 11:29:53 +00:00
- loadAssistiveTechnologies();
+ try {
+ loadAssistiveTechnologies();
+ } catch ( AWTError error) {
+ // ignore silently
+ }
2023-05-11 11:20:44 +00:00
}
return toolkit;
}