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

Use the current thread's classloader for classes #6926

Conversation

snowe2010
Copy link
Contributor

Switch from using the caller's classloader to using the current thread's
classloader. Using the caller's classloader results in subtle issues where
if a test is spawned on a different thread, you will not be able to find
the Substitutor, even though it is present.

This will fix
#6923 and
quarkusio/quarkus#32627

@snowe2010 snowe2010 requested a review from a team as a code owner April 18, 2023 21:55
Switch from using the caller's classloader to using the current thread's
classloader. This will fix
testcontainers#6923 and
quarkusio/quarkus#32627 Please enter the commit message for your changes. Lines starting
@snowe2010 snowe2010 force-pushed the feature/6923-fix-classloader-for-imagenamesubstitutor branch from 100415e to baea4a1 Compare April 18, 2023 21:58
@eddumelendez eddumelendez added this to the next milestone Apr 26, 2023
@snowe2010
Copy link
Contributor Author

@eddumelendez do I need to keep merging in from main or will you handle that when you go to release it?

@eddumelendez
Copy link
Member

I'm just waiting for the last check to pass and I will merge it.

@eddumelendez eddumelendez merged commit 1a61543 into testcontainers:main Apr 26, 2023
83 checks passed
@eddumelendez
Copy link
Member

Thanks for your contribution, @snowe2010 ! This is now in main branch and it will be part of the next release.

@snowe2010
Copy link
Contributor Author

Wooh! Thank you so much! Glad I could help!

@snowe2010 snowe2010 deleted the feature/6923-fix-classloader-for-imagenamesubstitutor branch April 26, 2023 23:59
@eddumelendez
Copy link
Member

@snowe2010 this fix is part of 1.18.1

@snowe2010
Copy link
Contributor Author

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants