Framework build compatible with JDK 9 (tests running against java.base module)

Issue: SPR-13344
This commit is contained in:
Juergen Hoeller
2016-07-19 19:37:34 +02:00
parent d07381e862
commit 88fcd0a2ed
11 changed files with 233 additions and 238 deletions

View File

@@ -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());
}