diff --git a/src/dorkbox/network/connection/ConnectionImpl.java b/src/dorkbox/network/connection/ConnectionImpl.java index 8a50d281..316d2c4b 100644 --- a/src/dorkbox/network/connection/ConnectionImpl.java +++ b/src/dorkbox/network/connection/ConnectionImpl.java @@ -1103,11 +1103,11 @@ class ConnectionImpl extends ChannelInboundHandlerAdapter implements ICryptoConn * Used by RMI for the CLIENT side, to get the proxy object as an interface * * @param objectID is the RMI object ID - * @param type must be the interface the proxy will bind to + * @param iFace must be the interface the proxy will bind to */ @Override public - RemoteObject getProxyObject(final int objectID, final Class type) { + RemoteObject getProxyObject(final int objectID, final Class iFace) { synchronized (proxyIdCache) { // we want to have a connection specific cache of IDs, using weak references. // because this is PER CONNECTION, this is safe. @@ -1115,7 +1115,7 @@ class ConnectionImpl extends ChannelInboundHandlerAdapter implements ICryptoConn if (remoteObject == null) { // duplicates are fine, as they represent the same object (as specified by the ID) on the remote side. - remoteObject = rmiBridge.createProxyObject(this, objectID, type); + remoteObject = rmiBridge.createProxyObject(this, objectID, iFace); proxyIdCache.put(objectID, remoteObject); } diff --git a/src/dorkbox/network/connection/IRmiConnection.java b/src/dorkbox/network/connection/IRmiConnection.java index 36b6aa91..5496dabf 100644 --- a/src/dorkbox/network/connection/IRmiConnection.java +++ b/src/dorkbox/network/connection/IRmiConnection.java @@ -26,12 +26,15 @@ interface IRmiConnection { /** * Used by RMI for the LOCAL side, to get the proxy object as an interface * - * @param type must be the interface the proxy will bind to + * @param objectID this is the RMI object ID + * @param iFace must be the interface the proxy will bind to */ - RemoteObject getProxyObject(final int objectID, final Class type); + RemoteObject getProxyObject(final int objectID, final Class iFace); /** * This is used by RMI for the REMOTE side, to get the implementation + * + * @param objectID this is the RMI object ID */ Object getImplementationObject(final int objectID);