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

ObjectInputStream - Use new convenience method for immutable Map creation during static initialization

    XMLWordPrintable

    Details

      Description

      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
      On java.io.ObjectInputStream there are a few minor mistakes.

      1) Line #536: 'Object curObj = ctx.getObj();' is set when the variable "curObj" is never used at any point of the scope

      2) Line #217: '= new HashMap<>(8, 1.0F);' The initial allocation should be 9, not 8 as there are 9 entries added in the static constructor.

      3) Line #42: 'import java.util.concurrent.atomic.AtomicBoolean;" AtomicBoolean is imported, but never used




      REPRODUCIBILITY :
      This bug can be reproduced always.

        Attachments

          Activity

            People

            Assignee:
            bpb Brian Burkhalter
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: