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

UnicastServerRef.getRefClass should throw MarshalException not InternalError

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.2
    • core-libs
    • None
    • beta
    • generic
    • generic
    • Verified

      As of 1.2.2, if you attempt to marshal an impl that extends UnicastRemoteObject and the impl has been unexported, an InternalError will be thrown when RemoteObject.writeObject calls UnicastServerRef.getRefClass. InternalError was appropriate before 1.2.2, because the impl-to-stub replacement code made this situation "not possible". However, now that it's possible, it would seem more appropriate to throw a MarshalException instead.

            peterjones Peter Jones (Inactive)
            bscheiflsunw Bob Scheifler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: