You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jason Chaffee (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2011/10/19 01:57:10 UTC

[jira] [Issue Comment Edited] (CXF-3770) WADL Generator does not handle Enums correctly

    [ 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/18/11 11:56 PM:
---------------------------------------------------------------

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

            if (isPrimitive || InjectionUtils.isSupportedCollectionOrArray(paramCls)) {
                doWriteParam(sb, entry.getKey(), paramCls, paramCls, name, new Annotation[]{});
            } else {
                doWriteBeanParam(sb, paramCls, entry.getKey(), name);
            }
                  
> 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