[weld-issues] [JBoss JIRA] Updated: (WELD-221) Infinite Mutual Recursion in HierarchyDiscovery.resolveType

Pete Muir (JIRA) jira-events at lists.jboss.org
Mon Nov 2 19:42:06 EST 2009


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

Pete Muir updated WELD-221:
---------------------------

    Priority: Critical  (was: Major)


> Infinite Mutual Recursion in HierarchyDiscovery.resolveType
> -----------------------------------------------------------
>
>                 Key: WELD-221
>                 URL: https://jira.jboss.org/jira/browse/WELD-221
>             Project: Weld
>          Issue Type: Bug
>    Affects Versions: 1.0.0.CR1
>            Reporter: Clint Popetz
>            Assignee: Pete Muir
>            Priority: Critical
>             Fix For: 1.0.0.CR2
>
>
> The following:
> abstract class ChoiceParent<T> { }
> class Choice<T, E> extends ChoiceParent<T>
> {
>    public Choice<T, E> aMethod()
>    {
>       return null;
>    }
> }
> will produce an infinite recursion between resolveType and resolveTypeParameter if weld tries to load it.  I've added a class to test/ in org.jboss.weld.test.unit.implementation.annotatedItem that triggers this, but it caused the build to fail, so it's been excluded.  To enable, remove the @Classes annotation from the top of  org.jboss.weld.test.unit.implementation.annotatedItem.ClassAnnotatedItemTest, which is excluding the deployment of Choice and ChoiceParent

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