src/share/classes/sun/rmi/server/UnicastServerRef.java
Print this page
*** 187,197 ****
*/
public Remote exportObject(Remote impl, Object data,
boolean permanent)
throws RemoteException
{
! Class implClass = impl.getClass();
Remote stub;
try {
stub = Util.createProxy(implClass, getClientRef(), forceStubUse);
} catch (IllegalArgumentException e) {
--- 187,197 ----
*/
public Remote exportObject(Remote impl, Object data,
boolean permanent)
throws RemoteException
{
! Class<?> implClass = impl.getClass();
Remote stub;
try {
stub = Util.createProxy(implClass, getClientRef(), forceStubUse);
} catch (IllegalArgumentException e) {
*** 325,335 ****
}
// marshal return value
try {
ObjectOutput out = call.getResultStream(true);
! Class rtype = method.getReturnType();
if (rtype != void.class) {
marshalValue(rtype, result, out);
}
} catch (IOException ex) {
throw new MarshalException("error marshalling return", ex);
--- 325,335 ----
}
// marshal return value
try {
ObjectOutput out = call.getResultStream(true);
! Class<?> rtype = method.getReturnType();
if (rtype != void.class) {
marshalValue(rtype, result, out);
}
} catch (IOException ex) {
throw new MarshalException("error marshalling return", ex);
*** 535,545 ****
extends WeakClassHashMap<Map<Long,Method>>
{
HashToMethod_Maps() {}
protected Map<Long,Method> computeValue(Class<?> remoteClass) {
! Map<Long,Method> map = new HashMap<Long,Method>();
for (Class<?> cl = remoteClass;
cl != null;
cl = cl.getSuperclass())
{
for (Class<?> intf : cl.getInterfaces()) {
--- 535,545 ----
extends WeakClassHashMap<Map<Long,Method>>
{
HashToMethod_Maps() {}
protected Map<Long,Method> computeValue(Class<?> remoteClass) {
! Map<Long,Method> map = new HashMap<>();
for (Class<?> cl = remoteClass;
cl != null;
cl = cl.getSuperclass())
{
for (Class<?> intf : cl.getInterfaces()) {