forked from square/dagger
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
KSP processing does not see member injections from typealiased superclass in 2.50 #4199
Comments
Thanks for reporting this! My guess is that it's due to 5f8b76c, where we changed the implementation of |
Filed https://issuetracker.google.com/317818395, and I'll have the fix submitted this week. |
copybara-service bot
pushed a commit
to androidx/androidx
that referenced
this issue
Dec 27, 2023
This CL fixes the issue in google/dagger#4199. The bug was due to checking if the `KSDeclaration` was a `KSClassDeclaration` without taking into consideration that the declaration could be a `KSTypeAlias`. To fix this, I've replaced the type aliases in the `KSType` before checking the declaration. BUG: 317818395 Test: XTypeElementTest.kt Change-Id: I110f6723fbb9d153a9c6d8dea74b7fbcf9146a74
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When testing with Dagger 2.50, it looks like its KSP implementation does not see through typealias'd superclasses. This seems to be a regression, as it works in 2.49.
Repro
The generated
MembersInjector
class however is missing the base class'sstring
memberThe text was updated successfully, but these errors were encountered: