Adjust source in test class to work around eclipse compiler bug

Issue: SPR-15586
This commit is contained in:
Andy Clement 2017-05-24 13:24:24 -07:00
parent 805fcc6a05
commit 109746a03b
1 changed files with 2 additions and 1 deletions

View File

@ -514,8 +514,9 @@ public class ConfigurationClassProcessingTests {
void register(GenericApplicationContext ctx) {
ctx.registerBean("spouse", TestBean.class,
() -> new TestBean("functional"));
Supplier<TestBean> testBeanSupplier = () -> new TestBean(ctx.getBean("spouse", TestBean.class));
ctx.registerBean(TestBean.class,
() -> new TestBean(ctx.getBean("spouse", TestBean.class)),
testBeanSupplier,
bd -> bd.setPrimary(true));
}