Skip to content

Commit 430fb51

Browse files
Abhijit SarkarDave Syer
Abhijit Sarkar
authored and
Dave Syer
committed
Ensure Groovy bean builder does not enforec XML validation
Since it is not parsing XML it makes no sense to be validating and it would cause exceptions when importing "namespace" features. This brings the Boot usage of the bean builder inline with that in Spring Core. Fixes gh-630
1 parent 4366d78 commit 430fb51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot/src/main/java/org/springframework/boot/BeanDefinitionLoader.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public BeanDefinitionLoader(BeanDefinitionRegistry registry, Object... sources)
8181
this.annotatedReader = new AnnotatedBeanDefinitionReader(registry);
8282
this.xmlReader = new XmlBeanDefinitionReader(registry);
8383
if (isGroovyPresent()) {
84-
this.groovyReader = new GroovyBeanDefinitionReader(this.xmlReader);
84+
this.groovyReader = new GroovyBeanDefinitionReader(registry);
8585
}
8686
this.scanner = new ClassPathBeanDefinitionScanner(registry);
8787
this.scanner.addExcludeFilter(new ClassExcludeFilter(sources));

0 commit comments

Comments
 (0)