This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Errata list for Servlet Specification

 
Javid Azimli
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

Spec 4.4.2.6 on page 55

Map<String, <? extends FilterRegistration>

getServletRegistrations()

This method returns a map of ServletRegistration objects, keyed by name

corresponding to all servlets registered with the ServletContext. If there are no

servlets registered with the ServletContext an empty map is returned. The returned

Map includes the ServletRegistration objects corresponding to all declared and

annotated servlets, as well as the ServletRegistration objects corresponding to all

servlets that have been added via one of the addServlet methods. Any changes to the

returned Map MUST not affect the ServletContext. An

UnsupportedOperationException is thrown if the ServletContext was

passed to the contextInitialized method of a ServletContextListener that

was neither declared in the web.xml or web-fragment.xml, nor annotated with

javax.servlet.annotation.WebListener.



This should replaced with below:


Map<String, <? extends FilterRegistration>

getFilterRegistrations()

This method returns a map of FilterRegistration objects, keyed by name

corresponding to all filters registered with the ServletContext. If there are no

filters registered with the ServletContext an empty map is returned. The returned

Map includes the FilterRegistration objects corresponding to all declared and

annotated servlets, as well as the FilterRegistration objects corresponding to all

servlets that have been added via one of the addFilter methods. Any changes to the

returned Map MUST not affect the ServletContext. An

UnsupportedOperationException is thrown if the ServletContext was

passed to the contextInitialized method of a ServletContextListener that

was neither declared in the web.xml or web-fragment.xml, nor annotated with

javax.servlet.annotation.WebListener.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65338
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure why you posted this here. We are not he keepers of the Servlet Specification.
 
Javid Azimli
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Not sure why you posted this here. We are not he keepers of the Servlet Specification.

Because of keeping aware of developers who are reading Servlet specification
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic