Skip to content

Use the current thread's classloader for classes#6926

Merged
eddumelendez merged 2 commits intotestcontainers:mainfrom
snowe2010:feature/6923-fix-classloader-for-imagenamesubstitutor
Apr 26, 2023
Merged

Use the current thread's classloader for classes#6926
eddumelendez merged 2 commits intotestcontainers:mainfrom
snowe2010:feature/6923-fix-classloader-for-imagenamesubstitutor

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 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
@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.

2 participants