datanucleus-core
datanucleus-core copied to clipboard
Class loading inside the loadClass (PersistenceCapable) method, should use the classloader of the current class
current:
try
{
return Class.forName(className);
}
catch (ClassNotFoundException e)
{
throw new NoClassDefFoundError(e.getMessage());
}
and it should be:
try
{
return Class.forName(className, false, CurrentClass.getClass().getClassLoader());
}
catch (ClassNotFoundException e)
{
throw new NoClassDefFoundError(e.getMessage());
}
This change breaks test.jdo.general "org.datanucleus.tests.metadata.AnnotationsPersistentInterfacesTest". Change rolled back