Uploaded image for project: 'Commons Digester'
  1. Commons Digester
  2. DIGESTER-174

Inner List Annotation has wrong @Target for most of the predefined annotation rules

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2
    • 3.3
    • None

    Description

      See documentation "Applying multiple annotation rule of the same type"
      The inner annotation should be usable as a wrapper for the outer annotation, to apply several rules to one element. Therefore the inner annotation has to have the very same defined @Target annotations as the outer annotation. This is not the case for most of the rules, making them practically useless.
      Example:
      @BeanPropertySetter - its @Target is ElementType.Field
      but its inner List
      @BeanPropertySetter.List - its @Target is ElementType.Type
      The only place where this is correct are the Create Rules, which are the annotations from the documentation.
      May I suggest to create a test case or example for a multi annotation rule? The provided example for annotated rules was very helpful for me, but is very simple and doesn't cover multi annotated rules.

      Attachments

        Activity

          People

            simone.tripodi Simone Tripodi
            thecoolace Bla Bla
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: