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

An annotation argument must be a compile-time constant #311

Open
onuryurtturk opened this issue Apr 18, 2021 · 3 comments
Open

An annotation argument must be a compile-time constant #311

onuryurtturk opened this issue Apr 18, 2021 · 3 comments

Comments

@onuryurtturk
Copy link

No description provided.

@P3t3rP3r3z
Copy link

Did you ever figure this out?

@onuryurtturk
Copy link
Author

nope I couldn't

@rossbacher
Copy link
Collaborator

You did not provide an example but I'm guessing you are using non compile time constants in the annotations.

e.g.

String deeplink = new String("http://www.example.com/")
@DeepLink(deeplink)
...

will not work as every parameter of any annotation as to to be a constant at compile time.

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

No branches or pull requests

3 participants