# HG changeset patch # User smarks # Date 1314739803 25200 # Node ID 4f21298dca19c26e28bcd14122f8f70d8eb4280b # Parent 6816ffc67934604cf420f77ea59a9121b39b23c0 7077466: fix for RMI DGC Reviewed-by: valeriep diff -r 6816ffc67934 -r 4f21298dca19 jdk/src/share/classes/sun/rmi/server/UnicastServerRef.java --- a/jdk/src/share/classes/sun/rmi/server/UnicastServerRef.java Fri Jul 22 21:14:56 2011 +0400 +++ b/jdk/src/share/classes/sun/rmi/server/UnicastServerRef.java Tue Aug 30 14:30:03 2011 -0700 @@ -390,6 +390,12 @@ ObjectInput in; try { in = call.getInputStream(); + try { + Class clazz = Class.forName("sun.rmi.transport.DGCImpl_Skel"); + if (clazz.isAssignableFrom(skel.getClass())) { + ((MarshalInputStream)in).useCodebaseOnly(); + } + } catch (ClassNotFoundException ignore) { } hash = in.readLong(); } catch (Exception readEx) { throw new UnmarshalException("error unmarshalling call header",