Skip to content

SystemProfileValueSource is not very compatible with the new 3.1 default system property profiles [SPR-8985] #13625

Closed as not planned
@spring-projects-issues

Description

@spring-projects-issues

Dave Syer opened SPR-8985 and commented

SystemProfileValueSource is not very compatible with the new 3.1 default system property profiles. If System.getProperty("spring.profiles.active") is null then the "default" profile is active, which is quite handy in <beans/> configuration. But the old SystemProfileValueSource from 2.0 returns null in that case, which then cannot be matched to anything legal in the @IfProfileValue annotation. I suggest that returning the empty String would be more sensible anyway and won't break any existing code because null is not legal as an annotation value.


Affects: 3.1 GA

Issue Links:

Metadata

Metadata

Assignees

Labels

in: testIssues in the test modulestatus: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions