[weld-dev] Infinite mutual recursion in HierarchyDiscovery.resolveType
Clint Popetz
cpopetz at gmail.com
Tue Oct 20 13:51:47 EDT 2009
Hi,
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.
I'm not competant enough with generics to touch that code.
-Clint
--
Clint Popetz
http://42lines.net
Scalable Web Application Development
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20091020/3fdafc43/attachment.html
More information about the weld-dev
mailing list