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

exception classes and permission class missing explicit serialVersionUID declaration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 1.1
    • core-libs
    • None

      The following serialization-related exception classes do not have explicit serialVersionUID declarations:

      java.io.InvalidClassException
      java.io.InvalidObjectException
      java.io.NotActiveException
      java.io.NotSerializableException
      java.io.ObjectStreamException
      java.io.OptionalDataException
      java.io.StreamCorruptedException

      (java.io.WriteAbortedException does have an explicit serialVersionUID declaration, out of necessity because of changes in 1.4 to retrofit it with the chained exception facility.)

      Also, java.io.SerializablePermission does not have an explicit serialVersionUID declaration.

      See http://java.sun.com/j2se/1.5/docs/guide/serialization/spec/class.html#4100 or http://java.sun.com/j2se/1.5/docs/api/java/io/Serializable.html for explanations of why these classes should have explicit serialVersionUID declarations-- of course, with values matching the corresponding default serialVersionUID values of each class in prior releases.

      ###@###.### 2005-04-19 21:20:45 GMT

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: