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

Serialization bug - java.util.Collections$SynchronizedCollection

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.3.0
    • 1.3.0
    • core-libs
    • rc2
    • x86
    • windows_nt
    • Verified



      Name: jb33418 Date: 01/31/2000


      "C:\Program Files\JavaSoft\JRE\1.3\bin\java" -version
      java version "1.3.0rc1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-T)
      Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)



      I have a store of serialized objects, created using JDK1.2.2. When I attempt to
      read the objects from the store using JDK1.3RC1, I get the following exception:

      java.io.InvalidClassException: java.util.Collections$SynchronizedCollection;
      Local class not compatible: stream classdesc
      serialVersionUID=3053995032091335093 local class
      serialVersionUID=7487094791527871196
              at com.kwiz.kdOb3.c.MtQlmyFsAO$uxOCIFOJ.AOmQmOk(Unknown Source)
              at com.kwiz.kdOb1.h.tOFxnxmsEPOQmOk.FOmFnOWOtOFxnxmOJQmOk(Unknown
      Source)
              at com.kwiz.kdOb1.B.QGUU.<init>(Unknown Source)
              at com.kwiz.kdOb1.R.C.QROumFsPqOFuOP.nunmnsPnxO(Unknown Source)
              at com.kwiz.kdOb1.R.C.QROumFsPqOFuOP.main(Unknown Source)
              at java.lang.reflect.Method.invoke(Native Method)
              at com.kwiz.kd.util.KwizLoader.main(Unknown Source)

      A class inside the collections within java.util has been modified but the serial
      version UID has not been set to the previous version.
      (Review ID: 100563)
      ======================================================================

      The following non-abstract serializable classes had a different
      SUID in the previous release (JDK1.2.2) and these also need to be fixed.

      java.awt.datatransfer.MimeTypeParseException
      java.io.ObjectOutputStream$Stack
      java.lang.String$CaseInsensitiveComparator
      java.rmi.server.ObjID$InsecureRandom
      java.security.AllPermissionCollection
      java.security.PrivilegedActionException
      java.util.Collections$EmptyList
      java.util.Collections$EmptySet
      java.util.Collections$ReverseComparator
      java.util.Collections$SingletonSet
      java.util.Collections$SynchronizedCollection
      java.util.Collections$SynchronizedMap
      java.util.Collections$UnmodifiableCollection
      java.util.Collections$UnmodifiableList
      java.util.Collections$UnmodifiableMap
      sun.applet.AppletProps
      sun.applet.AppletViewer
      sun.awt.im.CompositionArea
      sun.awt.motif.UPrinterDialog
      sun.awt.motif.X11CustomCursor
      sun.misc.PathPermissions
      sun.rmi.server.ActivationGroupImpl
      sun.rmi.server.UnicastServerRef
      sun.rmi.server.UnicastServerRef2
      sun.security.tools.ToolDialog
      sun.security.tools.ToolWindow


      naveen.sanjeeva@eng 2000-02-15

            nsanjeevsunw Naveen Sanjeeva (Inactive)
            jjb Josh Bloch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: