[ 
https://issues.apache.org/jira/browse/CXF-3770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13130146#comment-13130146
 ] 

Jason Chaffee edited comment on CXF-3770 at 10/19/11 12:00 AM:
---------------------------------------------------------------

I believe the issue is in the method doWriteBeanParam, I believe the 
conditional is not checking for Enum as one of the supported types.  It is only 
checking for primitives, collections and arrays.

{noformat}
if (isPrimitive || InjectionUtils.isSupportedCollectionOrArray(paramCls)) {
    doWriteParam(sb, entry.getKey(), paramCls, paramCls, name, new 
Annotation[]{});
} else {
    doWriteBeanParam(sb, paramCls, entry.getKey(), name);
}
{noformat} 
                
      was (Author: jasonchaffee):
    I believe the issue is in the method doWriteBeanParam, I believe the 
conditional is not picking Enum and one of the supported types.  It is only 
checking for primitives, collections and arrays.

{noformat}
if (isPrimitive || InjectionUtils.isSupportedCollectionOrArray(paramCls)) {
    doWriteParam(sb, entry.getKey(), paramCls, paramCls, name, new 
Annotation[]{});
} else {
    doWriteBeanParam(sb, paramCls, entry.getKey(), name);
}
{noformat} 
                  
> WADL Generator does not handle Enums correctly
> ----------------------------------------------
>
>                 Key: CXF-3770
>                 URL: https://issues.apache.org/jira/browse/CXF-3770
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>            Reporter: Sergey Beryozkin
>            Assignee: Sergey Beryozkin
>             Fix For: 2.4.3, 2.5
>
>
> WADL generator should print multiple options when dealing with Enum

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to