servlet-spec
  1. servlet-spec
  2. SERVLET_SPEC-4

Clarification on javadoc and spec examples on AsyncContext#dispatch()

    Details

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

      Description

      In javadoc of javax.servlet.AsyncContext#dispatch(), we have
      ...
      getRequestDispatcher("/url/B").forward(request,response);
      ...
      getRequestDispatcher("/url/B").forward(request,response);

      It should be
      request.getRequestDispatcher("/url/B").forward(request,response);
      or
      servletContext.getRequestDispatcher("/url/B").forward(request,response);

      In p.15 of spec pdf file, there is a similar issue.
      Also, one may like to add "//" for comment and additional information from javadoc.

        Activity

        Shing Wai Chan created issue -
        Rajiv Mordani made changes -
        Field Original Value New Value
        Assignee Shing Wai Chan [ swchan2 ]
        Shing Wai Chan made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Shing Wai Chan made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: