Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #4737 Ensure lifecycle callbacks happen for run-as and non async servlets #4744

Merged
merged 2 commits into from
Apr 6, 2020

Conversation

janbartel
Copy link
Contributor

Closes #4737

Need to unwrap RunAsServlet and NotAsyncServlet before calling ServletHandler.destroyServlet(Servlet) because these wrapper classnames are unknown outside of the ServletHolder, in particular to the LifeCycleCallbackCollection, which contains the maps of postConstruct and preDestroy methods to call based on the name of the class.

…c servlets

Signed-off-by: Jan Bartel <janb@webtide.com>
@janbartel janbartel requested a review from gregw April 2, 2020 10:04
@janbartel janbartel self-assigned this Apr 2, 2020
Copy link
Contributor

@joakime joakime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@gregw gregw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other than name niggle LGTM

Signed-off-by: Jan Bartel <janb@webtide.com>
@janbartel janbartel merged commit 4b28422 into jetty-9.4.x Apr 6, 2020
@janbartel janbartel deleted the jetty-9.4.x-4737-predestroy branch April 6, 2020 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants