Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4017960

stub required to implement hashCode and equals for a non-UnicastRemoteObject

XMLWordPrintable

    • 1.1beta3
    • sparc
    • solaris_2.5
    • Not verified

      In order to write correct versions of the hashCode and equals method for remote objects that do not extend java.rmi.server.UnicastRemoteObject, the remote object needs to obtain its stub to use for comparison purposes. Therefore,
      UnicastRemoteServer.exportObject method should return a RemoteStub, so that the remote object can obtain the stub for the object when it is exported and use that information in the hashCode and equals methods. The exportObject method, in Alpha2, correctly returned RemoteStub.

            awollratsunw Ann Wollrath (Inactive)
            awollratsunw Ann Wollrath (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: