sun.net.www.protocol.https.HttpsClient#putInKeepAliveCache() doesn't use a lock while dealing with "inCache" field

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 19
    • Affects Version/s: 17
    • Component/s: core-libs
    • b13

      HttpsClient extends sun.net.www.http.HttpClient. HttpClient internally uses a lock when dealing with internal state, in methods like putInKeepAliveCache(). The HttpsClient overrides this method and in its implementation it doesn't use the lock when dealing with the "inCache" internal field. This looks like an oversight.

            Assignee:
            Jaikiran Pai
            Reporter:
            Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: