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

Changes in default serialVersionUID calculation since JDK8-b73

XMLWordPrintable

    • b73
    • 8

      Please see minimized test below:

      $ cat Test.java
      public class Test extends java.security.Signer implements java.io.Serializable {
          String n;

          public Test(String s) {
              n = s;
          }
      }

      $ /java/re/jdk/7/promoted/fcs/b148/binaries/solaris-sparc/bin/javac Test.java
      Note: Test.java uses or overrides a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.

      $ /java/re/jdk/7/promoted/fcs/b148/binaries/solaris-sparc/bin/serialver Test
      Test: static final long serialVersionUID = 7190557222763814429L;

      $ /java/re/jdk/8/promoted/ea/b72/binaries/solaris-sparc/bin/serialver Test
      Test: static final long serialVersionUID = 7190557222763814429L;

      $ /java/re/jdk/8/promoted/ea/b73/binaries/solaris-sparc/bin/serialver Test
      Test: static final long serialVersionUID = -4685217835722692979L;

            Unassigned Unassigned
            ygaevsky Yuri Gaevsky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: