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

XMLWordPrintable

      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.

            asabotdu@redhat.com Antoine Sabot-Durand (Inactive)
            marko.luksa@gmail.com Marko Luksa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: