Skip to content

Commit 1f1577e

Browse files
committed
fixed @value injection to correctly cache temporary null results for non-singleton beans (SPR-7614)
1 parent e1dbb66 commit 1f1577e

File tree

1 file changed

+1
-4
lines changed
  • org.springframework.context/src/test/java/org/springframework/context/annotation/configuration

1 file changed

+1
-4
lines changed

org.springframework.context/src/test/java/org/springframework/context/annotation/configuration/ValueInjectionTests.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77

88
<context:annotation-config/>
99

10-
<bean class="org.springframework.context.annotation.configuration.AutowiredConfigurationTests$ValueConfig"/>
10+
<bean class="org.springframework.context.annotation.configuration.AutowiredConfigurationTests$ValueConfig" scope="prototype"/>
1111

12-
<!--
13-
<context:component-scan base-package="test.basic.value"/>
14-
-->
1512
</beans>

0 commit comments

Comments
 (0)