mirror of https://github.com/apache/maven.git
o Strengthened class loader consistency check
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@712116 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
78278a58b6
commit
82bb71b872
|
@ -146,7 +146,10 @@ public class LoadMojo
|
|||
getLog().info( "[MAVEN-CORE-IT-LOG] Loaded class from " + type.getClassLoader() );
|
||||
try
|
||||
{
|
||||
type = childClassLoader.loadClass( name );
|
||||
if ( !type.equals( childClassLoader.loadClass( name ) ) )
|
||||
{
|
||||
throw new ClassNotFoundException( name );
|
||||
}
|
||||
}
|
||||
catch ( ClassNotFoundException cnfe )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue