ConfigurationClassParser enforces @Bean declaration order through ASM metadata

Issue: SPR-14505
(cherry picked from commit 3295a4e)
This commit is contained in:
Juergen Hoeller
2016-12-23 20:29:12 +01:00
parent 505480cf63
commit 4a84ee07be
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