DATACMNS-1095 - Made ObjectInstantiator public to avoid IllegalAccessErrors.

ObjectInstantiator needs to be declared public as otherwise loading the implementation class fails as it doesn't have access to the (package) private interface in a different classloader.
This commit is contained in:
Oliver Gierke
2017-06-21 17:33:28 +02:00
parent cd8202861b
commit dd1c4d6935

View File

@@ -229,10 +229,12 @@ public class ClassGeneratingEntityInstantiator implements EntityInstantiator {
}
/**
* Needs to be public as otherwise the implementation class generated does not see the interface from the classloader.
*
* @author Thomas Darimont
* @author Oliver Gierke
*/
private static interface ObjectInstantiator {
public interface ObjectInstantiator {
Object newInstance(Object... args);
}