-
Notifications
You must be signed in to change notification settings - Fork 75
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
MembersInjector's constructor has wrong parameter order when base class with @Inject fields is in another module #723
Comments
This looks like a bug on the Kotlin side? When list of fields is fetched in This only happens when base class is in another module and I would appreciate some help with reporting this upstream to Kotlin, since I'm not sure what exactly is happening behind the scenes to make a proper report. By the way, I made a simple test for this issue here for even easier reproduce: matejdro@df9e78a |
When:
@Inject
MembersInjector
for that classBuild will fail with
incompatible types
exception. It seems like the order of parameters in MembersInjector generated by Anvil is not the same as expected by Dagger.Steps to reproduce:
Run this test: matejdro@df9e78a
OR
./gradlew assembleDebug
This situation seems weirdly specific at first, but getting MembersInjector strategy is used by Whestone to allow activity injection. Concretely, this bug means that we cannot have an activity where both actual activity and its parent class inject things independently.
The text was updated successfully, but these errors were encountered: