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

fix: set Thread Context ClassLoader correctly when invoking handler constructor #239

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

garethgeorge
Copy link
Contributor

@garethgeorge garethgeorge commented Sep 25, 2023

Adds the same logic that is used to set the Thread Context ClassLoader when handling a request to also apply that same class loader when constructing the handler.

Addresses issue #110

@kenneth-rosario
Copy link
Contributor

kenneth-rosario commented Sep 26, 2023

It be good if we had a test that can guard against regressing to the old behavior. Not sure how complex testing this would be though. WDYT?

@garethgeorge garethgeorge force-pushed the garethgeorge/issue/110 branch 2 times, most recently from 5beb0de to 645bde2 Compare September 26, 2023 18:13
@garethgeorge
Copy link
Contributor Author

Good point, done. Added test coverage.

Copy link
Contributor

@kenneth-rosario kenneth-rosario left a comment

Choose a reason for hiding this comment

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

Cool

@garethgeorge garethgeorge merged commit 9f7155b into main Sep 28, 2023
19 checks passed
@garethgeorge garethgeorge deleted the garethgeorge/issue/110 branch September 28, 2023 17:25
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