This is an automated email from the ASF dual-hosted git repository. lihan pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push: new c3bc80cebf Fix wrong exception message.#595 c3bc80cebf is described below commit c3bc80cebf12b2425562a042aed3c9d58ee99448 Author: lihan <li...@apache.org> AuthorDate: Tue Mar 7 16:47:29 2023 +0800 Fix wrong exception message.#595 --- java/javax/servlet/http/HttpFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/javax/servlet/http/HttpFilter.java b/java/javax/servlet/http/HttpFilter.java index 40394a6343..11ad7a2326 100644 --- a/java/javax/servlet/http/HttpFilter.java +++ b/java/javax/servlet/http/HttpFilter.java @@ -48,7 +48,7 @@ public abstract class HttpFilter extends GenericFilter { throw new ServletException(request + " not HttpServletRequest"); } if (!(response instanceof HttpServletResponse)) { - throw new ServletException(request + " not HttpServletResponse"); + throw new ServletException(response + " not HttpServletResponse"); } doFilter((HttpServletRequest) request, (HttpServletResponse) response, chain); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org