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

LogRecord class description says that Throwables stack trace isn't serialized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • docs
    • generic
    • generic



      Name: bsC130419 Date: 07/12/2001


      1.4beta documentation

      The class description for java.util.logging.LogRecord says that exception
      stack trace information is not preserved across serialization, even though
      such information is preserved.

      The LogRecord class description says:

         ...the Throwable class does not preserve stack frame information
         across serialization...

      (See http://java.sun.com/j2se/1.4/docs/api/java/util/logging/LogRecord.html
      as of 2001-07-12.)

      However, stack trace information is serialized in 1.4. The class
      description for Throwable (see
      http://java.sun.com/j2se/1.4/docs/api/java/lang/Throwable.html as
      of 2001-07-12) says:

        ...the stack trace information...has been added to the serialized
        representation of this class so getStackTrace and printStackTrace
        will operate properly on a throwable that was obtained by
        deserialization.



      (Review ID: 127998)
      ======================================================================

            shommel Scott Hommel (Inactive)
            bstrathesunw Bill Strathearn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: