Skip to content

GroovyBeanDefinitionReader does not fully support XML config files [SPR-12769] #17366

@spring-projects-issues

Description

@spring-projects-issues

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

  1. Ensure that XML configuration files are fully supported when bean definitions are loaded via GroovyBeanDefinitionReader.

Affects: 4.0 GA

Issue Links:

Referenced from: commits e24a7de, 7edc7c2, b6f22aa

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions