Matthew Buckett created CXF-7486:
------------------------------------
Summary: JAXRSServerFactoryBeanDefinitionParser should throw
exception when autowiring fails.
Key: CXF-7486
URL: https://issues.apache.org/jira/browse/CXF-7486
Project: CXF
Issue Type: Improvement
Components: JAX-RS
Affects Versions: 3.0.14
Reporter: Matthew Buckett
Rather than logging an error JAXRSServerFactoryBeanDefinitionParser should
throw the exception from the failure to autowire a bean. This would match the
standard behaviour observed by from Spring when autowiring fails and make
tracking down failures easier startup fails rather than getting a
NullPointerException at runtime.
As this could a breaking change it should only be introduced at a major upgrade
and documented in the release notes. If there's time updating the log message
produced to warn about this upcoming change may also be helpful.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)