Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-300

ReflectionEntityInstantiator should actually throw created exception

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5 Final
    • Fix Version/s: 1.5.1, 1.6 M1
    • Component/s: Core
    • Labels:
      None

      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

        Attachments

          Activity

            People

            • Assignee:
              olivergierke Oliver Drotbohm
              Reporter:
              jotomo Johannes Mockenhaupt
              Last updater:
              Trevor Marshall
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: