[webbeans-issues] [JBoss JIRA] Closed: (WBRI-209) The container allows scope types with invalid @Target values

Pete Muir (JIRA) jira-events at lists.jboss.org
Sat Jul 25 14:46:29 EDT 2009


     [ https://jira.jboss.org/jira/browse/WBRI-209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir closed WBRI-209.
--------------------------

    Resolution: Rejected


Spec doesn't say what error to throw, not possible to test.

> The container allows scope types with invalid @Target values
> ------------------------------------------------------------
>
>                 Key: WBRI-209
>                 URL: https://jira.jboss.org/jira/browse/WBRI-209
>             Project: Web Beans
>          Issue Type: Bug
>    Affects Versions: 1.0.0.BETA1
>            Reporter: Shane Bryzak
>
> In section 2.4.2 the spec states:
> "A scope type is a Java annotation defined as @Target({TYPE, METHOD, FIELD}) and @Retention(RUNTIME). All scope
> types must also specify the @javax.context.ScopeType meta-annotation."
> However, the container is allowing scope types with a target for example of @Target({TYPE, METHOD}).  The spec does not state what the behaviour should be when an invalid scope type is encountered (possibly a DefinitionException on deployment?)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the weld-issues mailing list