(spec) generify MarshalledObject

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 6
    • Affects Version/s: 5.0
    • Component/s: core-libs
    • None
    • beta
    • generic
    • generic

      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<?>.)

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: