Remove HttpHeaders1 and make HttpHeaders thread safe

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: core-libs

      java.net.http.HttpHeaders1 is an implementation class but was made public by mistake. Also, the current implementation approach is not thread safe.

      A better approach might be to define a new class

      class HttpHeadersUnmodifiable implements HttpHeaders {
          HttpHeadersUnmodifiable(HttpHeadersImpl ) {}
      }

      The class should use final fields and the constructor above should populate these fields guaranteeing thread safety.

            Assignee:
            Vaibhav Choudhary (Inactive)
            Reporter:
            Michael McMahon
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: