--- old/src/share/classes/sun/rmi/server/MarshalInputStream.java Fri Feb 24 10:50:36 2012 +++ new/src/share/classes/sun/rmi/server/MarshalInputStream.java Fri Feb 24 10:50:33 2012 @@ -65,7 +65,7 @@ /** table to hold sun classes to which access is explicitly permitted */ protected static Map> permittedSunClasses - = new HashMap>(3); + = new HashMap<>(3); /** if true, don't try superclass first in resolveClass() */ private boolean skipDefaultResolveClass = false; @@ -72,7 +72,7 @@ /** callbacks to make when done() called: maps Object to Runnable */ private final Map doneCallbacks - = new HashMap(3); + = new HashMap<>(3); /** * if true, load classes (if not available locally) only from the @@ -168,7 +168,7 @@ * from which to load the specified class. * It will find, load, and return the class. */ - protected Class resolveClass(ObjectStreamClass classDesc) + protected Class resolveClass(ObjectStreamClass classDesc) throws IOException, ClassNotFoundException { /* @@ -230,7 +230,7 @@ * resolveProxyClass is extended to acquire (if present) the location * to determine the class loader to define the proxy class in. */ - protected Class resolveProxyClass(String[] interfaces) + protected Class resolveProxyClass(String[] interfaces) throws IOException, ClassNotFoundException { /* @@ -262,7 +262,7 @@ * Fix for 4179055: Need to assist resolving sun stubs; resolve * class locally if it is a "permitted" sun class */ - private Class checkSunClass(String className, AccessControlException e) + private Class checkSunClass(String className, AccessControlException e) throws AccessControlException { // ensure that we are giving out a stub for the correct reason