Skip to content

Setting most generic class for source of relationship #2527

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 4 commits into from

Conversation

Andy2003
Copy link
Contributor

resolves #2526

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 27, 2022
if (parent == null) {
return source;
}
for (RelationshipDescription relationship : parent.getRelationships()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This solution does not seem to work consistently. I could detect invocations where parent.getRelationships() returns an empty list.

@michael-simons / @meistermeier do you have any idea how to get a consistent behavior?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

making source lazy (Lazy<NodeDescription<?>>) seems to solve this issue

@meistermeier
Copy link
Collaborator

Closing this in favour of 66be59c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants