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:
Oliver Gierke
2015-06-09 22:01:25 +02:00
parent a9a2ac3779
commit 317452c876

View File

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