ConfigurationClassParser enforces @Bean declaration order through ASM metadata

Issue: SPR-14505
This commit is contained in:
Juergen Hoeller
2016-12-23 20:29:12 +01:00
parent 8147c112f5
commit 3295a4e6ef
2 changed files with 31 additions and 8 deletions

View File

@@ -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