Skip to content

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

Closed as not planned

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:

Activity

  1. added
    in: test
    type: enhancement
    on Jan 11, 2019
  2. self-assigned this
    on Jan 15, 2019
  3. changed the title [-]SystemProfileValueSource is not very compatible with the new 3.1 default system property profiles [SPR-8985][/-] [+]`SystemProfileValueSource` is not very compatible with the new 3.1 default system property profiles [SPR-8985][/+] on Jan 10, 2024
  4. sbrannen commented on Jan 10, 2024

    @sbrannen
    Member

    Closing for the same reasons given in #12410 (comment).

  5. removed this from the General Backlog milestone on Jan 10, 2024
  6. added
    status: declined
    on Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: teststatus: declinedtype: enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions