BEANUTILS-566: Use ContextClassLoader for Instantiating Loggers#267
BEANUTILS-566: Use ContextClassLoader for Instantiating Loggers#267volosied wants to merge 2 commits intoapache:masterfrom
Conversation
|
20 files changed files and zero tests is not good. Try and see if Mockito helps. |
|
Hi @garydgregory , I've found a way to test that the context classloader is used. I also tested the negative case to verify it's not called. There may be an easier way to test, but I simply created my own classloader and load the tests from the target/test-classes directory. I tried to add comments to make it more clear on what is occurring. I'm not sure how to run the jobs -- they failed due to check-style violations which I've since fixed. I would appreciate any feedback for improvements. Thank you. |
|
I pushed up another test which also let the builds run. Everything passed except for Java 23, but those failures are unrelated to my changes from the looks of. |
d1deea7 to
5ee3b58
Compare
5ee3b58 to
478c1a0
Compare
|
@garydgregory following up again for any feedback. And if the community would prefer not to use this change, that's fine, but, please let me know. Thank you. |
ppkarwasz
left a comment
There was a problem hiding this comment.
IMHO the TCCL problem should be solved at the source in Commons Logging.
See LOGGING-196 for details.
https://issues.apache.org/jira/browse/BEANUTILS-566
Swaps our the thread context classloader to avoid memory leaks in some scenarios.