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

fix interface based @ContributesSubcomponent.Factory in KSP #931

Merged
merged 2 commits into from
Mar 15, 2024
Merged

fix interface based @ContributesSubcomponent.Factory in KSP #931

merged 2 commits into from
Mar 15, 2024

Conversation

gabrielittner
Copy link
Contributor

Currently any @ContributesSubcomponent.Factory that is an interface fails the KSP codegen with "A factory must have exactly one abstract function returning the subcomponent ...". The getAllFunctions() returns non abstract methods like equals/hashCode for interfaces, so we need to filter for interfaces as well.

Copy link
Collaborator

@ZacSweers ZacSweers left a comment

Choose a reason for hiding this comment

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

Thanks!

@ZacSweers ZacSweers merged commit 4af950f into square:main Mar 15, 2024
17 checks passed
@gabrielittner gabrielittner deleted the fix-contributes-subcomponent-factory branch March 15, 2024 17:07
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.

2 participants