If the !profile selector is used the other profiles can be ignored in <beans profile="!foo,bar"/> [SPR-11093] #15719
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Dave Syer opened SPR-11093 and commented
The !profile selector in AbstractEnvironment causes premature termination of loop.
Here's the code:
So with
<beans profile="!foo,bar"/>
even if the "bar" profile is active the method returns false when "foo" is also active. Maybe that was intentional, but it doesn't match what I read in the Javadocs (and XSD docs).Affects: 4.0 RC1
Backported to: 3.2.6
The text was updated successfully, but these errors were encountered: