Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6307

[classlib][luni] java.net.HttpCookie.parse is not threadsafe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.0M1
    • Classlib
    • None
    • Java 6 branch, all platforms
    • Patch Available
    • Moderate

    Description

      Static method java.net.HttpCookie.parse is not threadsafe in that calling this method across multiple threads (but on thread local objects) will corrupt the resulting HttpCookie objects. The problem is the class is sharing static Setter objects for each cookie property, to prevent the properties being set multiple times. The fix is to make these object local.

      Attachments

        1. 6307-patch.txt
          3 kB
          Catherine Hope

        Activity

          People

            odeakin Oliver Deakin
            chope Catherine Hope
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: