提交 37f4f437 编写于 作者: J Juergen Hoeller

Consistent 4.x style NoClassDefFoundError handling

Issue: SPR-14883
上级 db1a84ed
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册