This is an automated email from the ASF dual-hosted git repository. lihan pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push: new 4958e268c1 Fix wrong exception message.#595 4958e268c1 is described below commit 4958e268c16bd6fc49e71db23f202f72b935ed3d Author: lihan <li...@apache.org> AuthorDate: Tue Mar 7 16:47:29 2023 +0800 Fix wrong exception message.#595 --- java/jakarta/servlet/http/HttpFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/jakarta/servlet/http/HttpFilter.java b/java/jakarta/servlet/http/HttpFilter.java index 4c7154bea6..b02a306dbf 100644 --- a/java/jakarta/servlet/http/HttpFilter.java +++ b/java/jakarta/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