Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-473

required meta-annotations for a qualifier specified differently in spec and API

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • 1.1.0.Beta1
    • 1.0.1.Final
    • None
    • None
    • Documentation (Ref Guide, User Guide, etc.)

    Description

      The specification and the API documentation differ on the required and optional meta-annotations of a qualfiier.

      JSR-299, 2.3.2 Defining new qualfier type specifies

      @Target(METHOD, FIELD, PARAMETER, TYPE} ("is")
      @Retention(RUNTIME) ("is")
      @Qualifier, but only optional ("may")

      API-Doc of Qualifier specifies

      @Qualifier
      @Retention(RUNTIME)
      @Documented (optional, typical)
      @Target optional, but various element types as targets possible

      Both agree on Retention only.

      As a third source I might have a look at the code and the implemented validity check. I have not so far.

      I am a bit fussy about this because a missing @Target of my first custom scope messed up the proxying.

      Attachments

        Activity

          People

            pmuiratbleepbleep Pete Muir (Inactive)
            frechwo Wolfgang Frech (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: