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

(spec) generify MarshalledObject

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 5.0
    • 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<?>.)

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: