DATACMNS-710 - ObjectInstantiatorClassGenerator now uses default class loader.
We're now using ClassUtils.getDefaultClassloader() to make sure we adhere to any class loading tricks the framework might impose for domain type instantiation.
This commit is contained in:
@@ -284,7 +284,7 @@ public enum BytecodeGeneratingEntityInstantiator implements EntityInstantiator {
|
||||
|
||||
this.classLoader = AccessController.doPrivileged(new PrivilegedAction<ByteArrayClassLoader>() {
|
||||
public ByteArrayClassLoader run() {
|
||||
return new ByteArrayClassLoader(ObjectInstantiatorClassGenerator.class.getClassLoader());
|
||||
return new ByteArrayClassLoader(ClassUtils.getDefaultClassLoader());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user