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

Hashtable deserialization reconstitutes table with wrong capacity

    Details

    • Subcomponent:
    • Introduced In Version:
      1.1
    • Resolved In Build:
      b48
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        Deserialization reconstitutes internal 'table' array with wrong length. This is the output of the test:

        Serialized Hashtable of size=10 has internal table.length=14 but de-serialized table.length=10
        Serialized Hashtable of size=50 has internal table.length=67 but de-serialized table.length=42
        Serialized Hashtable of size=500 has internal table.length=667 but de-serialized table.length=403
        Serialized Hashtable of size=5000 has internal table.length=6667 but de-serialized table.length=4003

          Issue Links

            Activity

            Show
            plevart Peter Levart added a comment - Here's proposed fix: http://cr.openjdk.java.net/~plevart/jdk9-dev/Hashtable.8068427/webrev.01/
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/3e0ff6048ec5
            User: plevart
            Date: 2015-01-21 20:42:52 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/3e0ff6048ec5 User: plevart Date: 2015-01-21 20:42:52 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/3e0ff6048ec5
            User: lana
            Date: 2015-01-28 23:16:37 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/3e0ff6048ec5 User: lana Date: 2015-01-28 23:16:37 +0000

              People

              • Assignee:
                plevart Peter Levart
                Reporter:
                plevart Peter Levart
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: