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

Clarify that an array with a variable component type or parameterized component type containing wildcards is not a valid bean type

    Details

      Description

      Section 2.2.1 says:

      Almost any Java type may be a bean type of a bean:
      • A bean type may be an array type.

      and:

      A type variable is not a legal bean type. A parameterized type that contains a wildcard type parameter is not a legal bean type.

      This should be clarified that array types that have a type variable or a parameterized type that contains a wildcard type parameter as the array's component type are also not legal bean types.

      Also, all other sections that mention type variables/wildcards should also be reviewed and, if necessary, updated to also specifically mention array types with these kinds of component types.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  antoinesabot-durand Antoine Sabot-Durand
                  Reporter:
                  luksa Marko Luksa
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: