mirror of
https://github.com/apache/maven.git
synced 2025-03-05 16:19:24 +00:00
o Restored old context classloader so the threads dont go running around with classloaders that should unload
This commit is contained in:
parent
620137ebca
commit
e8df4ca993
@ -574,6 +574,7 @@ public ResolveTask( ClassLoader classLoader, CountDownLatch latch, Artifact arti
|
||||
|
||||
public void run()
|
||||
{
|
||||
ClassLoader old = Thread.currentThread().getContextClassLoader();
|
||||
try
|
||||
{
|
||||
Thread.currentThread().setContextClassLoader( classLoader );
|
||||
@ -602,6 +603,8 @@ public void run()
|
||||
finally
|
||||
{
|
||||
latch.countDown();
|
||||
Thread.currentThread().setContextClassLoader( old );
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user