-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Description
Sam Brannen opened SPR-12769 and commented
Status Quo
The class-level Javadoc for GroovyBeanDefinitionReader
states the following.
This bean definition reader also understands XML bean definition files, allowing for seamless mixing and matching with Groovy bean definition files.
However, the support for XML configuration files is actually limited since GroovyBeanDefinitionReader
disables XML validation for the XmlBeanDefinitionReader
that it uses internally. As a consequence, certain standard features for XML configuration files do not work. For example, as discussed in #17365, the absence of XML validation causes the default
value of the type
attribute (defined in the spring-beans
XSD) in the <qualifier>
tag to be ignored, and this results in a BeanDefinitionParsingException
when the ApplicationContext
is loaded.
Deliverables
- Ensure that XML configuration files are fully supported when bean definitions are loaded via
GroovyBeanDefinitionReader
.
Affects: 4.0 GA
Issue Links:
- XML config isn't fully supported for web integration tests if Groovy is on the classpath [SPR-12768] #17365 XML config isn't fully supported for web integration tests if Groovy is on the classpath