Fixed evaluation of "!" operator in case of multiple profile expressions

Issue: SPR-11093
This commit is contained in:
Juergen Hoeller
2013-12-09 13:29:21 +01:00
parent f70739430b
commit 6078c27e60
5 changed files with 49 additions and 16 deletions

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"
profile="!dev,prod">
<bean id="foo" class="java.lang.String"/>
</beans>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"
profile="!dev">
<bean id="foo" class="java.lang.String"/>
</beans>