[cdi-dev] [JBoss JIRA] (CDI-398) Clarify that an array with a variable component type or parameterized component type containing wildcards is not a valid bean type

Antoine Sabot-Durand (JIRA) issues at jboss.org
Tue Jan 28 05:23:29 EST 2014


    [ https://issues.jboss.org/browse/CDI-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12939218#comment-12939218 ] 

Antoine Sabot-Durand edited comment on CDI-398 at 1/28/14 5:22 AM:
-------------------------------------------------------------------

Done [~jharting], but don't be shy : you're the TCK specialist here ;).
                
      was (Author: antoinesabot-durand):
    Done [~jharting], but don't be shy : you're the TCK specialist her ;).
                  
> Clarify that an array with a variable component type or parameterized component type containing wildcards is not a valid bean type
> ----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CDI-398
>                 URL: https://issues.jboss.org/browse/CDI-398
>             Project: CDI Specification Issues
>          Issue Type: Bug
>          Components: Beans
>    Affects Versions: 1.1.PFD
>            Reporter: Marko Lukša
>              Labels: CDI_spec_chge, CDI_tck_chge, Ready_to_fix
>             Fix For: 1.2 Proposed
>
>
> Section 2.2.1 says:
> {quote}
> Almost any Java type may be a bean type of a bean:
> • A bean type may be an array type.
> {quote}
> and:
> {quote}
> A type variable is not a legal bean type. A parameterized type that contains a wildcard type parameter is not a legal bean type.
> {quote}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the cdi-dev mailing list