Skip to content

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

Open

Description

@onuryurtturk
No description provided.

Activity

  1. P3t3rP3r3z commented on May 11, 2021

    @P3t3rP3r3z

    Did you ever figure this out?

  2. onuryurtturk commented on May 14, 2021

    @onuryurtturk
    Author

    nope I couldn't

  3. rossbacher commented on May 19, 2021

    @rossbacher
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions