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

Fixes mismatched parameter names in subcomponent factory methods. #3463

Closed
wants to merge 1 commit into from

Conversation

copybara-service[bot]
Copy link

Fixes mismatched parameter names in subcomponent factory methods.

Fixes #3401

This issue occurs when the original factory method is in a separate build unit from the component that implements it. This issue happens when building with Gradle (couldn't repro with Bazel) and when the original factory method is a kotlin library.

This CL changes createSubcomponentFactoryMethod() to use the "overriding" factory method's parameters instead of the parameter names from the original factory method.

RELNOTES=N/A

Fixes #3401

This issue occurs when the original factory method is in a separate build unit from the component that implements it. This issue happens when building with Gradle (couldn't repro with Bazel) and when the original factory method is a kotlin library.

This CL changes `createSubcomponentFactoryMethod()` to use the "overriding" factory method's parameters instead of the parameter names from the original factory method.

RELNOTES=N/A
PiperOrigin-RevId: 460473493
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dagger generates code with wrong parameter names and fails to compile
1 participant