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

1.3 can't deserialize object w/ unresolvable class that has custom writeObject

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.3.1
    • 1.4.0
    • core-libs
    • None

        JDK 1.3 throws a StreamCorruptedException when attempting to deserialize an
        object whose class defines a custom writeObject() method but is not resolvable
        in the receiving VM.

        This situation currently arises when serializing Exceptions containing
        instances of java.lang.StackTraceElement from a merlin to a 1.3 VM, since the
        StackTraceElement class defines writeObject() and is not present in 1.3.
        To reproduce the failure, run the attached program twice, once to write out a
        serialized exception and once to read it back in:

            merlin/java Trace write ser.out
            jdk1.3/java Trace read ser.out

              mwarressunw Michael Warres (Inactive)
              bscheiflsunw Bob Scheifler (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: