Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ServletContext.createXXX() methods should throw UnsupportedOperationException #4700

Closed
janbartel opened this issue Mar 23, 2020 · 0 comments · Fixed by #4701
Closed

ServletContext.createXXX() methods should throw UnsupportedOperationException #4700

janbartel opened this issue Mar 23, 2020 · 0 comments · Fixed by #4701
Assignees
Labels
Specification For all industry Specifications (IETF / Servlet / etc) TCK For various Specification Test Compatibility Kits (eg: Servlet, WebSocket, HTTP/2, etc)

Comments

@janbartel
Copy link
Contributor

jetty 10.0x

According to the spec, the ServletContext createListener(), createServlet(), createFilter() methods should throw UnsupportedOperationException if they are called from a ServletContextListener that has been programmatically added.

The javadoc also implies that ServletContext.createListener() is allowed to create an instance of ServletContextListener from a ServletContextListener, even thought it would be illegal to call ServletContext.addListener() with the created listener!

@janbartel janbartel added Specification For all industry Specifications (IETF / Servlet / etc) TCK For various Specification Test Compatibility Kits (eg: Servlet, WebSocket, HTTP/2, etc) labels Mar 23, 2020
@janbartel janbartel self-assigned this Mar 23, 2020
janbartel added a commit that referenced this issue Mar 23, 2020
…OperationException

Signed-off-by: Jan Bartel <janb@webtide.com>
janbartel added a commit that referenced this issue Mar 24, 2020
Signed-off-by: Jan Bartel <janb@webtide.com>
janbartel added a commit that referenced this issue Mar 25, 2020
…OperationException (#4701)

* Issue #4700 ServletContext.createXXX methods should throw UnsupportedOperationException

Signed-off-by: Jan Bartel <janb@webtide.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Specification For all industry Specifications (IETF / Servlet / etc) TCK For various Specification Test Compatibility Kits (eg: Servlet, WebSocket, HTTP/2, etc)
Projects
None yet
1 participant