mirror of
https://github.com/apache/maven.git
synced 2025-03-06 08:39:31 +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()
|
public void run()
|
||||||
{
|
{
|
||||||
|
ClassLoader old = Thread.currentThread().getContextClassLoader();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Thread.currentThread().setContextClassLoader( classLoader );
|
Thread.currentThread().setContextClassLoader( classLoader );
|
||||||
@ -602,6 +603,8 @@ public void run()
|
|||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
latch.countDown();
|
latch.countDown();
|
||||||
|
Thread.currentThread().setContextClassLoader( old );
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user