ConfigurationClassParser enforces @Bean declaration order through ASM metadata
Issue: SPR-14505
This commit is contained in:
@@ -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