Reintroduced the com.bugsnag.servlet.BugsnagServletContainerInitializer, and com.bugsnag.servlet.BugsnagServletRequestListener classes as empty sub-classes of com.bugsnag.servlet.javax.* so that the migration is clear but existing code will continue to run as-normal.
These "new" com.bugsnag.servlet.* classes are marked as @Deprecated but are still the classes registered in META-INF/services. This means that containers will instantiate these deprecated classes, but that they can be safely downcast to the new com.bugsnag.servlet.javax classes.
Any applications that manually register or instantiate the new com.bugsnag.servlet.javax classes will not be able to downcast them to the deprecated com.bugsnag.servlet.* classes.
Goal
Restore the public API for:
com.bugsnag.servlet.BugsnagServletContainerInitializer
com.bugsnag.servlet.BugsnagServletRequestListener
Design
Reintroduced the
com.bugsnag.servlet.BugsnagServletContainerInitializer
, andcom.bugsnag.servlet.BugsnagServletRequestListener
classes as empty sub-classes ofcom.bugsnag.servlet.javax.*
so that the migration is clear but existing code will continue to run as-normal.These "new"
com.bugsnag.servlet.*
classes are marked as@Deprecated
but are still the classes registered inMETA-INF/services
. This means that containers will instantiate these deprecated classes, but that they can be safely downcast to the newcom.bugsnag.servlet.javax
classes.Any applications that manually register or instantiate the new
com.bugsnag.servlet.javax
classes will not be able to downcast them to the deprecatedcom.bugsnag.servlet.*
classes.Testing
Relied on existing tests.