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 use-site target field to custom options annotation spec #2854

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alvinsee
Copy link
Member

@alvinsee alvinsee commented Mar 6, 2024

Description

This change adds a use-site target for fields in the kotlin generated classes. This enables the annotations targeted for a field to be available through the java field via reflection.

@alvinsee alvinsee force-pushed the alvin/wire-custom-options-annotation-target branch from 4b78a20 to bbc7da4 Compare March 6, 2024 23:12
@alvinsee alvinsee force-pushed the alvin/wire-custom-options-annotation-target branch from c8c73ca to 70caa8a Compare March 8, 2024 17:49
@oldergod oldergod requested a review from swankjesse March 8, 2024 17:50
@swankjesse
Copy link
Member

I don’t like doubling up the amount of generated code here.

Is it already available via reflection on the getter?

@JakeWharton
Copy link
Member

Can we make these all @JvmField as a hack?

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.

None yet

4 participants