[webbeans-issues] [JBoss JIRA] Updated: (WBRI-215) Manager.getInstanceToInject() does not throw an UnproxyableDependencyException for unproxyable bean types

Pete Muir (JIRA) jira-events at lists.jboss.org
Tue Mar 31 06:47:22 EDT 2009


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

Pete Muir updated WBRI-215:
---------------------------

    Fix Version/s: 1.0.0.PREVIEW
         Priority: Minor  (was: Major)


> Manager.getInstanceToInject() does not throw an UnproxyableDependencyException for unproxyable bean types
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: WBRI-215
>                 URL: https://jira.jboss.org/jira/browse/WBRI-215
>             Project: Web Beans
>          Issue Type: Bug
>    Affects Versions: 1.0.0.BETA1
>            Reporter: Shane Bryzak
>            Priority: Minor
>             Fix For: 1.0.0.PREVIEW
>
>
> The spec states in section 5.7.1:
> "Manager.getInstanceToInject() returns a contextual instance or client proxy to be injected to the given injection point.
> The getInstanceToInject() method must:
> <snip>
> * If the bean has a normal scope and the type cannot be proxied by the container, as defined in Section 5.4.1,
> "Unproxyable bean types", throw an UnproxyableDependencyException."
> This exception is not being thrown for unproxyable bean types - see TCK test org.jboss.jsr299.tck.tests.lookup.dependency.resolution.DependencyResolutionTest, method testGetInstanceToInjectThrowsUnproxyableDependencyException().
> Section 5.4.1 of the spec lists "classes without a non-private constructor with no parameters" as an unproxyable bean type.

-- 
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