[DATACMNS-300] ReflectionEntityInstantiator should actually throw created exception Created: 21/Mar/13  Updated: 16/Apr/13  Resolved: 25/Mar/13

Status: Closed
Project: Spring Data Commons
Component/s: Core
Affects Version/s: 1.5 Final
Fix Version/s: 1.5.1, 1.6 M1

Type: Bug Priority: Minor
Reporter: Johannes Mockenhaupt Assignee: Oliver Drotbohm
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: Not Specified
Original Estimate: 0d

Attachments: Zip Archive mylyn-context.zip    
Last updater: Trevor Marshall

 Description   

In the catch block a new exception is instanciated, which I assume should be thrown, but misses the throw keyword and therefore currently does nothing.

https://github.com/SpringSource/spring-data-commons/blob/master/src/main/java/org/springframework/data/convert/ReflectionEntityInstantiator.java#L64

Simplistic test that demonstrates this: https://github.com/SpringSource/spring-data-commons/pull/25/files


Generated at Sat Jul 11 06:00:10 UTC 2020 using Jira 8.5.4#805004-sha1:0444eab799707f9ad7b248d69f858774aadfd250.