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

(spec) generify MarshalledObject

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 6
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      generic
    • OS:
      generic

      Description

      It would seem appropriate to generify the java.rmi.MarshalledObject API as follows:

      public final class MarshalledObject<T> implements Serializable {
          public MarshalledObject(T obj) throws IOException { ... }
          public T get() throws IOException, ClassNotFoundException { ... }
          ...
      }

      With such a generification, a program element could be declared to be not just a MarshalledObject, but a MarshalledObject that contains a marshalled object that is assignable to a particular reference type.

      (Along with this change, other java.rmi APIs that declare MarshalledObject would have to be changed accordingly; all such declarations in existing APIs (all in java.rmi.activation) would probably be changed to MarshalledObject<?>.)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                peterjones Peter Jones
                Reporter:
                peterjones Peter Jones
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: