Blame SOURCES/corba_typo_fix.patch

8f84c8
diff -r 5c43ac1f2a59 src/share/classes/javax/rmi/CORBA/Util.java
8f84c8
--- openjdk.orig/corba/src/share/classes/javax/rmi/CORBA/Util.java	Fri Jul 01 04:11:22 2016 +0100
8f84c8
+++ openjdk/corba/src/share/classes/javax/rmi/CORBA/Util.java	Mon Jul 04 16:04:39 2016 +0100
8f84c8
@@ -413,8 +413,18 @@
8f84c8
                 // check that a serialization permission has been
8f84c8
                 // set to allow the loading of the Util delegate
8f84c8
                 // which provides access to custom ValueHandler
8f84c8
-                sm.checkPermission(new SerializablePermission(
8f84c8
-                        "enableCustomValueHanlder"));
8f84c8
+                try {
8f84c8
+                    sm.checkPermission(new SerializablePermission(
8f84c8
+                        "enableCustomValueHandler"));
8f84c8
+                } catch (SecurityException ex1) {
8f84c8
+                    // Fallback: See if the permission is mis-spelt
8f84c8
+                    try {
8f84c8
+                        sm.checkPermission(new SerializablePermission(
8f84c8
+                            "enableCustomValueHanlder"));
8f84c8
+                    } catch (SecurityException ex2) {
8f84c8
+                        throw ex1; // Throw original exception
8f84c8
+                    }
8f84c8
+                }
8f84c8
             }
8f84c8
         }
8f84c8
     }