tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1839513 - /tomcat/trunk/test/org/apache/catalina/core/TestApplicationContextGetRequestDispatcher.java
Date Tue, 28 Aug 2018 23:17:52 GMT
Author: markt
Date: Tue Aug 28 23:17:52 2018
New Revision: 1839513

URL: http://svn.apache.org/viewvc?rev=1839513&view=rev
Log:
Correct default servlet mapping

Modified:
    tomcat/trunk/test/org/apache/catalina/core/TestApplicationContextGetRequestDispatcher.java

Modified: tomcat/trunk/test/org/apache/catalina/core/TestApplicationContextGetRequestDispatcher.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/core/TestApplicationContextGetRequestDispatcher.java?rev=1839513&r1=1839512&r2=1839513&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/core/TestApplicationContextGetRequestDispatcher.java
(original)
+++ tomcat/trunk/test/org/apache/catalina/core/TestApplicationContextGetRequestDispatcher.java
Tue Aug 28 23:17:52 2018
@@ -380,7 +380,7 @@ public class TestApplicationContextGetRe
 
         // Add a default servlet to return 404 for not found resources
         Tomcat.addServlet(ctx, "Default", new Default404Servlet());
-        ctx.addServletMappingDecoded("/*", "Default");
+        ctx.addServletMappingDecoded("/", "Default");
 
         // Add a target servlet to dispatch to
         Tomcat.addServlet(ctx, "target", new TargetServlet());
@@ -414,7 +414,7 @@ public class TestApplicationContextGetRe
     }
 
 
-    private static class Default404Servlet extends HttpServlet {
+    static class Default404Servlet extends HttpServlet {
 
         private static final long serialVersionUID = 1L;
         private static final String DEFAULT_404 = "DEFAULT-404";



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message