You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (Resolved) (JIRA)" <ji...@apache.org> on 2012/01/17 19:20:41 UTC

[jira] [Resolved] (CXF-4027) Aegis BeanType does not ignore super type of java.lang.Enum

     [ https://issues.apache.org/jira/browse/CXF-4027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-4027.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.5.2
                   2.4.6
         Assignee: Daniel Kulp

Patch applied
                
> Aegis BeanType does not ignore super type of java.lang.Enum
> -----------------------------------------------------------
>
>                 Key: CXF-4027
>                 URL: https://issues.apache.org/jira/browse/CXF-4027
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.5.1
>            Reporter: James Phillpotts
>            Assignee: Daniel Kulp
>             Fix For: 2.4.6, 2.5.2
>
>         Attachments: CXF-4027.patch
>
>
> When using aegis combined with a mapping file on an enum type, aegis ends up trying to create a type for java.lang.Enum, and falls over with an NPE in the process.
> It seems to me that when getting the super type in BeanType.getSuperType(), there are some other classes that should be excluded (line 584), java.lang.Enum and java.io.Serializable (the latter may be the super type if the current type is an interface that extends it).

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