servlet-spec
  1. servlet-spec
  2. SERVLET_SPEC-6

Undefined behaviour for AsyncContext#getRequest() and getResponse() after complete()/dispatch()

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      The specification is unclear on what should happen here. Clearly, it isn't going to work but how it fails and when it fails is undefined.

      My preference is for declaring that those methods throw IllegalStateException in those circumstances.

        Activity

          People

          • Assignee:
            Shing Wai Chan
            Reporter:
            markt_asf
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: