Merge remote-tracking branch 'origin/jetty-10.0.x' into jetty-11.0.x

This commit is contained in:
Joakim Erdfelt 2021-05-12 11:04:26 -05:00
commit 67db25be16
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,6 @@ public class ServletContextHandler extends ContextHandler
_servletHandler = servletHandler;
_objFactory = new DecoratedObjectFactory();
_objFactory.addDecorator(new DeprecationWarning());
// Link the handlers
relinkHandlers();
@ -302,6 +301,7 @@ public class ServletContextHandler extends ContextHandler
@Override
protected void doStart() throws Exception
{
_objFactory.addDecorator(new DeprecationWarning());
getServletContext().setAttribute(DecoratedObjectFactory.ATTR, _objFactory);
super.doStart();
}