UnicastServerRef.getRefClass should throw MarshalException not InternalError

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 1.2.2
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: