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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 1.3.1
    • Affects Version/s: 1.4.0
    • Component/s: 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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: