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

Dubious collection management in sun.net.www.http.KeepAliveCache

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b28
    • Verification:
      Not verified

      Description

      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
      On line 127 of KeepAliveCache.java (http://hg.openjdk.java.net/jdk9/dev/jdk/file/5a6df35b0f97/src/java.base/share/classes/sun/net/www/http/KeepAliveCache.java#l127) I found the following piece of code:

          v.remove(h);

      This strikes me as dubious, since h is of type HttpClient, but v is a vector of KeepAliveEntry objects. These two classes are unrelated, so I don't think v can ever contain h, and the call probably does nothing.


      REPRODUCIBILITY :
      This bug can be reproduced always.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              clanger Christoph Langer
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: