Framework build compatible with JDK 9 (tests running against java.base module)
Issue: SPR-13344
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -18,8 +18,6 @@ package org.springframework.transaction.annotation;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.aop.support.AopUtils;
|
||||
@@ -153,10 +151,7 @@ public class EnableTransactionManagementTests {
|
||||
static class Spr11915Config {
|
||||
|
||||
@Autowired
|
||||
private ConfigurableApplicationContext applicationContext;
|
||||
|
||||
@PostConstruct
|
||||
public void initializeApp() {
|
||||
public void initializeApp(ConfigurableApplicationContext applicationContext) {
|
||||
applicationContext.getBeanFactory().registerSingleton(
|
||||
"qualifiedTransactionManager", new CallCountingTransactionManager());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user