I'm trying to become more familiar with the code, but I think the issue may stem from this area of the JaxbTypeCreator class:
public Type createType(Method m, int index)
{
Class clazz = null;
if (index > -1)
{
clazz = m.getParameterTypes()[index];
}
else
{
clazz = m.getReturnType();
}
if (isJaxbType(clazz))
{
return createJaxbType(clazz);
}
else
{
return nextCreator.createType(m, index);
}
}
Calling m.getReturnType on a method that returns a List<Bar> would only return List as the class, and then the subsequent call to isJaxbType would return false for the java.util.List class. I've seen this mentioned before in JIRA issue XFIRE-85, but that did not seem to deal with the JAXB version of the code.
Hope this helps.
I'm trying to become more familiar with the code, but I think the issue may stem from this area of the JaxbTypeCreator class:
public Type createType(Method m, int index)
{ clazz = m.getParameterTypes()[index]; }{
Class clazz = null;
if (index > -1)
else
{ clazz = m.getReturnType(); }if (isJaxbType(clazz))
{ return createJaxbType(clazz); }else
{ return nextCreator.createType(m, index); }}
Calling m.getReturnType on a method that returns a List<Bar> would only return List as the class, and then the subsequent call to isJaxbType would return false for the java.util.List class. I've seen this mentioned before in JIRA issue
XFIRE-85, but that did not seem to deal with the JAXB version of the code.Hope this helps.