Closed spring-projects-issues closed 20 years ago
Juergen Hoeller commented
Thanks for spotting this! I guess your interpretation of the origin of the bug is quite on spot ;-)
DataAccessUtils.uniqueResult is the one that's used by other framework classes, so works and is tested. Unfortunately, the new DataAccessUtils.requiredUniqueResult method was not used or tested anywhere.
Juergen
Mathias Bogaert opened SPR-165 and commented
Typical 'tired developer and rapid release'-type of bug: instead of throwing the exception, returning the instance: return new IncorrectResultSizeDataAccessException(1, 0);. This breaks the requiredUniqueResult method.
No further details from SPR-165