servlet-spec
  1. servlet-spec
  2. SERVLET_SPEC-51

Clarification is needed for ServletContext.addFilter(...) and ServletContext.addServlet(...)

    Details

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

      Description

      Hi,

      Javadoc for ServletContext.addFilter(...)/ServletContext.addServlet(...) does not specify what should be the behaviour when filterName/servletName is NULL.

      Would you specify whether filterName/servletName is mandatory or optional and what should be the behaviour of these methods.

      From my point of view filterName/servletName should be mandatory and IllegalArgumentException should be thrown when filterName/servletName is NULL.

      Thanks in advance
      Violeta Georgieva

        Activity

        violetagg created issue -
        Shing Wai Chan made changes -
        Field Original Value New Value
        Assignee Shing Wai Chan [ swchan2 ]
        Shing Wai Chan made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: