mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 05:49:04 +00:00
ConfigurationClassParser enforces @Bean declaration order through ASM metadata
Issue: SPR-14505
(cherry picked from commit 3295a4e)
This commit is contained in:
+5
-5
@@ -1281,15 +1281,15 @@ public class ConfigurationClassPostProcessorTests {
|
||||
@Configuration
|
||||
static class FooBarConfiguration {
|
||||
|
||||
@Bean @DependsOn("bar")
|
||||
public FooImpl foo() {
|
||||
return new FooImpl();
|
||||
}
|
||||
|
||||
@Bean
|
||||
public BarInterface bar() {
|
||||
return new BarImpl();
|
||||
}
|
||||
|
||||
@Bean
|
||||
public FooImpl foo() {
|
||||
return new FooImpl();
|
||||
}
|
||||
}
|
||||
|
||||
@Configuration
|
||||
|
||||
Reference in New Issue
Block a user