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:
Benjamin Bentmann 2008-11-07 12:32:42 +00:00
parent 78278a58b6
commit 82bb71b872
1 changed files with 4 additions and 1 deletions

View File

@ -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 )
{