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

Clint Popetz (JIRA) jira-events at lists.jboss.org
Tue Nov 3 22:26:05 EST 2009


    [ https://jira.jboss.org/jira/browse/WELD-221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12492968#action_12492968 ] 

Clint Popetz commented on WELD-221:
-----------------------------------

Yes, this fixes the issue I have having.  Thank you.

> 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