提交 dd9b83c2 编写于 作者: S smarks

7077466: fix for RMI DGC

Reviewed-by: valeriep
上级 b6c379bf
...@@ -390,6 +390,12 @@ public class UnicastServerRef extends UnicastRef ...@@ -390,6 +390,12 @@ public class UnicastServerRef extends UnicastRef
ObjectInput in; ObjectInput in;
try { try {
in = call.getInputStream(); 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(); hash = in.readLong();
} catch (Exception readEx) { } catch (Exception readEx) {
throw new UnmarshalException("error unmarshalling call header", throw new UnmarshalException("error unmarshalling call header",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册