From d72cf89ebf48b92b402ba3e724887f5a25b2a1d2 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Tue, 18 Jan 2022 16:21:26 +0100 Subject: [PATCH] Make PropertySourcesPlaceholderConfigurerTests pass on JDK 17 This change is required in Eclipse IDE but not for the Gradle build. See gh-27947 --- .../support/PropertySourcesPlaceholderConfigurerTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-context/src/test/java/org/springframework/context/support/PropertySourcesPlaceholderConfigurerTests.java b/spring-context/src/test/java/org/springframework/context/support/PropertySourcesPlaceholderConfigurerTests.java index 42fe1a715e..839b4c5395 100644 --- a/spring-context/src/test/java/org/springframework/context/support/PropertySourcesPlaceholderConfigurerTests.java +++ b/spring-context/src/test/java/org/springframework/context/support/PropertySourcesPlaceholderConfigurerTests.java @@ -445,7 +445,7 @@ public class PropertySourcesPlaceholderConfigurerTests { } } - @Configuration + @Configuration(proxyBeanMethods = false) static class IgnoreUnresolvablePlaceholdersFalseConfig { @Value("${my.key}") @@ -457,7 +457,7 @@ public class PropertySourcesPlaceholderConfigurerTests { } } - @Configuration + @Configuration(proxyBeanMethods = false) static class IgnoreUnresolvablePlaceholdersTrueConfig { @Value("${my.key}")