cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Chaffee (Issue Comment Edited) (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (CXF-3770) WADL Generator does not handle Enums correctly
Date Tue, 18 Oct 2011 23:57:10 GMT

    [ 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

        

Mime
View raw message