Skip to content
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

Add missing recurring dependencies to ResolvedDependency #3635

Closed
wants to merge 1 commit into from

Conversation

knutwannheden
Copy link
Contributor

When ResolvedPom#resolveDependencies() processes the dependencies, it skips any dependencies it has already seen. But it must still make sure to add them to the list of dependencies of the artifact that requested it.

Also exclude ResolvedDependency#dependencies from hashCode() since dependencies can be circular (although not within one scope).

Fixes: #3626

When `ResolvedPom#resolveDependencies()` processes the dependencies, it skips any dependencies it has already seen. But it must still make sure to add them to the list of dependencies of the artifact that requested it.

Also exclude `ResolvedDependency#dependencies` from `hashCode()` since dependencies can be circular (although not within one scope).

Fixes: #3626
@timtebeek timtebeek added the bug Something isn't working label Oct 19, 2023
@sambsnyd
Copy link
Member

I would rather not have cycles unless there's a strong argument we need them

@knutwannheden
Copy link
Contributor Author

Closing this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

ResolvedDependency.hashCode() causes StackOverflowError with circular dependencies
3 participants