java-9-openjdk/accessible-toolkit.patch

19 lines
691 B
Diff
Raw Normal View History

2017-08-15 17:40:47 +00:00
diff -uNr jdk9/jdk/src/java.desktop/share/classes/java/awt/Toolkit.java jdk8/jdk/src/java.desktop/share/classes/java/awt/Toolkit.java
--- jdk9/jdk/src/java.desktop/share/classes/java/awt/Toolkit.java
+++ jdk9/jdk/src/java.desktop/share/classes/java/awt/Toolkit.java
@@ -883,9 +883,13 @@
return null;
}
});
if (!GraphicsEnvironment.isHeadless()) {
- loadAssistiveTechnologies();
+ try {
+ loadAssistiveTechnologies();
+ } catch (AWTError error) {
+ // ignore silently
+ }
}
}
return toolkit;
}