bugsnag / bugsnag-java

BugSnag error reporting for Java.
https://www.bugsnag.com/platforms/java/
MIT License
56 stars 34 forks source link

Restored the `com.bugsnag.servlet` (javax) classes #199

Closed lemnik closed 1 year ago

lemnik commented 1 year ago

Goal

Restore the public API for:

Design

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.

Testing

Relied on existing tests.