Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-23175

Validation of RetentionPolicy

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • 4.30.x
    • 4.4.1.Final
    • cdi-extensions
    • None

    Description

      The DeltaSpike sometimes requires to create new annotation. There are "parameter binding annotation" and "security binding annotation" in security module (doc). If the anotation haven't this repention policy,then the annotation doesn't works (explanation).

      This is a valid annotation

      @Retention(value = RetentionPolicy.RUNTIME)
      @Target({ElementType.TYPE, ElementType.METHOD})
      @Documented
      @SecurityBindingType
      public @interface CustomSecurityBinding {
      }
      

      and this doesn't work

      //@Retention(value = RetentionPolicy.RUNTIME)
      @Target({ElementType.TYPE, ElementType.METHOD})
      @Documented
      @SecurityBindingType
      public @interface CustomSecurityBinding {
      }
      

      I am not sure if that can be or should be validated.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lvalach_jira Lukáš Valach (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: