LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File java-1.7.0-openjdk-accessible-toolkit.patch of Package java-1_7_0-openjdk (Project openSUSE:Factory:ARM)

diff -uNr openjdk-orig/jdk/src/share/classes/java/awt/Toolkit.java openjdk/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
+++ openjdk/jdk/src/share/classes/java/awt/Toolkit.java	2009-01-23 12:05:20.000000000 -0500
@@ -871,7 +871,11 @@
                         return null;
                     }
                 });
-                loadAssistiveTechnologies();
+                try {
+                    loadAssistiveTechnologies();
+                } catch ( AWTError error) {
+                    // ignore silently
+                }
             } finally {
                 // Make sure to always re-enable the JIT.
                 java.lang.Compiler.enable();