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());
        }


Erik Bengtson made changes - 27/Mar/10 05:59 PM
Field Original Value New Value
Affects Version/s 2.0.1 [ 10890 ]
Affects Version/s 2.0.0.release [ 10723 ]
Erik Bengtson made changes - 27/Mar/10 06:01 PM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 2.1.0.m1 [ 10913 ]
Resolution Fixed [ 1 ]
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

Andy Jefferson made changes - 27/Mar/10 08:14 PM
Resolution Fixed [ 1 ]
Status Resolved [ 5 ] Reopened [ 4 ]
Andy Jefferson made changes - 19/Apr/10 09:17 AM
Fix Version/s 2.0.2 [ 10913 ]
Andy Jefferson made changes - 05/Oct/12 05:06 PM
Project DataNucleus Enhancer (ARCHIVED) [ 10165 ] DataNucleus Core [ 10143 ]
Key NUCENHANCER-54 NUCCORE-925
Affects Version/s 2.0.1 [ 10835 ]
Affects Version/s 2.0.0.release [ 10703 ]
Affects Version/s 2.0.0.release [ 10723 ]
Affects Version/s 2.0.1 [ 10890 ]
Component/s Enhancer [ 10350 ]
Component/s ASM Enhancer [ 10162 ]
Andy Jefferson made changes - 28/Nov/13 03:01 PM
Assignee Erik Bengtson [ erik ]