Merge remote-tracking branch 'origin/jetty-9.2.x' into jetty-9.3.x

This commit is contained in:
Jan Bartel 2016-09-02 15:42:48 +10:00
commit 9e74080f8b
1 changed files with 1 additions and 1 deletions

View File

@ -424,7 +424,7 @@ public class ServletContextHandler extends ContextHandler
*/
public ServletHolder addServlet(Class<? extends Servlet> servlet,String pathSpec)
{
return getServletHandler().addServletWithMapping(servlet.getName(), pathSpec);
return getServletHandler().addServletWithMapping(servlet, pathSpec);
}
/* ------------------------------------------------------------ */