Skip to content

Conversation

@jyane
Copy link
Member

@jyane jyane commented Jan 24, 2018

@Internal and @ExperimentalApi annotations are not visible at compile time of application (not grpc-java) because their retention policies are SOURCE.
So, change retention policies to CLASS.

According to javap -v, grpc-java's annotations are removed at compile time.
I think changing to CLASS is necessary for resolving this issue (#3929) because the users will use compiled jar files.
If this(#790 (comment)) is the only reason, I want to change retention policy to CLASS.

`@Internal` and `@ExperimentalApi` annotations are not visible at compile time
of application (not grpc-java) because their retention policies are `SOURCE`.
So, change retention policies to `CLASS`.
@dapengzhang0 dapengzhang0 added the kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run label Jan 24, 2018
@kokoro-team kokoro-team removed the kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run label Jan 24, 2018
Copy link
Member

@ejona86 ejona86 left a comment

Choose a reason for hiding this comment

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

Doh! Thanks for the fix.

@ejona86 ejona86 requested a review from ericgribkoff January 26, 2018 20:48
@ejona86 ejona86 merged commit 0c21032 into grpc:master Jan 26, 2018
@jyane jyane deleted the change-annotation-policy branch January 26, 2018 23:01
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants