Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-132

Clarify which initial info AnnotatedType should contain

    Details

      Description

      The spec is not exactly clear about the initial content of AnnotatedType.

      When initially building the AnnotatedType (e.g. before handing it over to the Extensions) we need to pre-fill them with the info from the annotations from the classes.

      Should this AnnotatedType:
      1.) contain no annotations from superclasses?
      2.) contain all annotations from superclasses?
      3.) contain @Inherited annotations from superclasses?

      I think the other questions already got cleared up in CDI-70:
      Should AnnotatedType contain derived public? protected? private? methods/fields from a superclass?

      Imo it should contain all information which would be available by manually parsing any annotations. In other words: it should be possible to completely modify or emulate annotations of a parsed type.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pmuir Pete Muir
                  Reporter:
                  struberg Mark Struberg
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: