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

          Attachments

            Issue Links

              Activity

                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: