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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user