SpringSource/spring-framework — pull request #64 by marschall (2012-04-09 11:03:32+00:00)
Title: NPE in AutowiredAnnotationBeanPostProcessor

AutowiredAnnotationBeanPostProcessor.determineRequiredStatus never
checks the return value of ReflectionUtils.findMethod. This method
returns null for @Inject @Value @Resource in which case a
NullPointerException is thrown in ReflectionUtils.invokeMethod and
caught in AutowiredAnnotationBeanPostProcessor.determineRequiredStatus.

- check return value of ReflectionUtils.findMethod
- default to required if no required method is found
- existing test cases cover both cases

Issue: SPR-9316