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

Pattern class has different serialVersionUID under b59 and older

XMLWordPrintable

    • beta
    • sparc
    • solaris_2.6
    • Verified



      Name: ooR10001 Date: 05/04/2001


      Since jdk1.4.0-beta-b59 serialVersionUID for java.util.regex.Pattern class will
      be differ than under older build versions. This is a compatibility problem and
      it needs to be fixed.

      Following example shows a bug:
      Lets compute serialVersionUID for java.util.regex.Pattern class under
      jdk1.4.0-beta-b58 :
      ----------------------------
      % java -version
      java version "1.4.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b58)
      Java HotSpot(TM) Client VM (build 1.4.0-beta-b58, mixed mode)

      % serialver java.util.regex.Pattern
      java.util.regex.Pattern: static final long serialVersionUID =
      -696396193238722627L;
      ^^^^^^^^^^^^^^^^^^^^^^
      -----------------------------

      Lets compute serialVersionUID for java.util.regex.Pattern class under
      jdk1.4.0-beta-b59 :
      ------------------------
      % java -version
      java version "1.4.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b59)
      Java HotSpot(TM) Client VM (build 1.4.0-beta-b59, mixed mode)

      % serialver java.util.regex.Pattern
      java.util.regex.Pattern: static final long serialVersionUID =
      5073258162644648461L;
      ^^^^^^^^^^^^^^^^^^^^^^
      ------------------------

      Note: both builds contains same delta for java.util.regex.Pattern source.

      ======================================================================

            mmcclosksunw Michael Mccloskey (Inactive)
            oovsunw Oov Oov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: