Skip to content

Take aliases into consideration when checking descendants #14967

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

Take aliases into consideration when checking descendants #14967

wants to merge 3 commits into from

Conversation

chang-chao
Copy link
Contributor

AliasedConfigurationPropertySource class does not properly treat aliases in containsDescendantOf method.
For example, in the following case, containsDescendantOf("baz") should return true , but currently false is returned.

  • source property:
    bar.foo = barValue

  • alias:
    bar.foo -> baz.foo

This PR fixes this issue.

@pivotal-issuemaster
Copy link

@chang-chao Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster
Copy link

@chang-chao Thank you for signing the Contributor License Agreement!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 25, 2018
@philwebb philwebb added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 25, 2018
@philwebb philwebb added this to the 2.0.x milestone Oct 25, 2018
@philwebb philwebb self-assigned this Oct 26, 2018
@philwebb philwebb removed the type: bug A general bug label Oct 26, 2018
@philwebb philwebb removed this from the 2.0.x milestone Oct 26, 2018
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 26, 2018
philwebb added a commit that referenced this pull request Oct 26, 2018
philwebb added a commit that referenced this pull request Oct 26, 2018
* pr/14967:
  Polish "Consider aliases when checking descendants"
  Consider aliases when checking descendants
@philwebb philwebb closed this in 256ca68 Oct 26, 2018
@philwebb philwebb added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 26, 2018
@philwebb philwebb added this to the 2.0.7 milestone Oct 26, 2018
@philwebb
Copy link
Member

Thanks very much for the PR. This is now in 2.0.x and master with some slight modifications.

@chang-chao chang-chao deleted the aliasedconfigurationpropertysource_containsdescendantof branch October 27, 2018 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants