Issue Details (XML | Word | Printable)

Key: NUCCORE-925
Type: Bug Bug
Status: Reopened Reopened
Priority: Major Major
Assignee: Unassigned
Reporter: Erik Bengtson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus Core

Class loading inside the loadClass (PersistenceCapable) method, should use the classloader of the current class

Created: 27/Mar/10 05:58 PM   Updated: 28/Nov/13 03:01 PM
Component/s: Enhancer
Affects Version/s: 2.0.0.release, 2.0.1
Fix Version/s: None


 Description  « Hide
current:
        try
        {
            return Class.forName(className);
        }
        catch (ClassNotFoundException e)
        {
            throw new NoClassDefFoundError(e.getMessage());
        }

and it should be:
        try
        {
            return Class.forName(classNamej,false,CurrentClass.getClass().getClassLoader());
        }
        catch (ClassNotFoundException e)
        {
            throw new NoClassDefFoundError(e.getMessage());
        }


Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 27/Mar/10 08:14 PM
This change breaks test.jdo.general "org.datanucleus.tests.metadata.AnnotationsPersistentInterfacesTest". Change rolled back