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

ObjectStreamClass does not support inherited writeReplace/readResolve

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • other-libs
    • None
    • beta2
    • generic
    • generic

      com.sun.corba.se.internal.io.ObjectStreamClass only looks for directly declared writeReplace/readResolve methods; it does not look for inherited ones. In contrast, java.io.ObjectStreamClass does look for inherited ones. As a result, instances of some classes can be serialized through normal serialization but cannot be serialized through IIOP. A particular example is java.security.cert.Certificate, which has a protected writeReplace that is intended to cover all subclasses; certificate instances cannot be serialized through IIOP.

            eandersosunw Everett Anderson (Inactive)
            bscheiflsunw Bob Scheifler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: