JDK-4449006 : (spec) LocateRegistry.createRegistry need to specify behavior for null csf/ssf
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.rmi
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_7
  • CPU: sparc
  • Submitted: 2001-04-20
  • Updated: 2003-07-23
  • Resolved: 2003-07-23
Related Reports
Duplicate :  
Description
The following method in java.rmi.registry.LocateRegistry needs to specify
its behavior if csf and/or ssf is null.

public static Registry createRegistry(int port,
                                      RMIClientSocketFactory csf,
                                      RMIServerSocketFactory ssf)
                               throws RemoteException

Comments
EVALUATION The createRegistry method with client/server socket factory parameters should specify that it exports the registry using the URO exportObject method that takes the same paramters. This URO.exportObject method should specify the behavior if a null csf or ssf is supplied. This should be considered for tiger. ###@###.### 2002-07-16 This bug has been taken care of along with the closely related bug 4453947 (LocateRegistry.createRegistry should specify how the registry is exported). I am closing this as a duplicate of 4453947. There is a related issue filed as 4449028 that requests that the behavior be specified for null client and server socket factories passed to UnicastRemoteObject.exportObject. Since the LocateRegistry.createRegistry methods are specified in terms of the UnicastRemoteObject.exportObject methods they invoke and 4449028 slready addresses this issue, the behavior for null client and server socket factories don't need to be specified by the createRegistry method. ###@###.### 2003-07-23
23-07-2003