Consistent 4.x style NoClassDefFoundError handling

Issue: SPR-14883
This commit is contained in:
Juergen Hoeller
2016-11-07 19:13:00 +01:00
parent db1a84ede1
commit 37f4f43726

View File

@@ -265,6 +265,10 @@ public class AutowiredAnnotationBeanPostProcessor extends InstantiationAwareBean
catch (IllegalStateException ex) {
throw new BeanCreationException(beanName, "Lookup method resolution failed", ex);
}
catch (NoClassDefFoundError err) {
throw new BeanCreationException(beanName, "Failed to introspect bean class [" + beanClass.getName() +
"] for lookup method metadata: could not find class that it depends on", err);
}
this.lookupMethodsChecked.add(beanName);
}