DATACMNS-300 - Fixed exception handling in ReflectionEntityInstantiator.
ReflectionEntityInstantiator now actually throws the wrapped exception created in the catch block handling BeanInstantiationExceptions. Pull request: #25.
This commit is contained in:
committed by
Oliver Gierke
parent
9781f603ea
commit
596908946d
@@ -61,7 +61,7 @@ public enum ReflectionEntityInstantiator implements EntityInstantiator {
|
||||
return BeanUtils.instantiateClass(entity.getType());
|
||||
}
|
||||
} catch (BeanInstantiationException e) {
|
||||
new MappingInstantiationException(entity, Collections.emptyList(), e);
|
||||
throw new MappingInstantiationException(entity, Collections.emptyList(), e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user