src/share/classes/sun/rmi/server/MarshalInputStream.java

Print this page

        

*** 63,80 **** new sun.security.action.GetBooleanAction( "java.rmi.server.useCodebaseOnly")).booleanValue(); /** table to hold sun classes to which access is explicitly permitted */ protected static Map<String, Class<?>> permittedSunClasses ! = new HashMap<String, Class<?>>(3); /** if true, don't try superclass first in resolveClass() */ private boolean skipDefaultResolveClass = false; /** callbacks to make when done() called: maps Object to Runnable */ private final Map<Object, Runnable> doneCallbacks ! = new HashMap<Object, Runnable>(3); /** * if true, load classes (if not available locally) only from the * URL specified by the "java.rmi.server.codebase" property. */ --- 63,80 ---- new sun.security.action.GetBooleanAction( "java.rmi.server.useCodebaseOnly")).booleanValue(); /** table to hold sun classes to which access is explicitly permitted */ protected static Map<String, Class<?>> permittedSunClasses ! = new HashMap<>(3); /** if true, don't try superclass first in resolveClass() */ private boolean skipDefaultResolveClass = false; /** callbacks to make when done() called: maps Object to Runnable */ private final Map<Object, Runnable> doneCallbacks ! = new HashMap<>(3); /** * if true, load classes (if not available locally) only from the * URL specified by the "java.rmi.server.codebase" property. */
*** 166,176 **** /** * resolveClass is extended to acquire (if present) the location * from which to load the specified class. * It will find, load, and return the class. */ ! protected Class resolveClass(ObjectStreamClass classDesc) throws IOException, ClassNotFoundException { /* * Always read annotation written by MarshalOutputStream * describing where to load class from. --- 166,176 ---- /** * resolveClass is extended to acquire (if present) the location * from which to load the specified class. * It will find, load, and return the class. */ ! protected Class<?> resolveClass(ObjectStreamClass classDesc) throws IOException, ClassNotFoundException { /* * Always read annotation written by MarshalOutputStream * describing where to load class from.
*** 228,238 **** /** * 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) throws IOException, ClassNotFoundException { /* * Always read annotation written by MarshalOutputStream. */ --- 228,238 ---- /** * 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) throws IOException, ClassNotFoundException { /* * Always read annotation written by MarshalOutputStream. */
*** 260,270 **** /** * 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) throws AccessControlException { // ensure that we are giving out a stub for the correct reason Permission perm = e.getPermission(); String name = null; --- 260,270 ---- /** * 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) throws AccessControlException { // ensure that we are giving out a stub for the correct reason Permission perm = e.getPermission(); String name = null;