cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-5997) Generating isX method instead of getX method for java.lang.Boolean
Date Thu, 11 Sep 2014 13:44:34 GMT

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

Daniel Kulp commented on CXF-5997:
----------------------------------

And note some of the discussions around it on their JIRA:

https://java.net/jira/browse/JAXB-631

https://java.net/jira/browse/JAXB-131



> Generating isX method instead of getX method for java.lang.Boolean
> ------------------------------------------------------------------
>
>                 Key: CXF-5997
>                 URL: https://issues.apache.org/jira/browse/CXF-5997
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.0.0, 3.0.1
>         Environment: Maven, cxf-codegen-plugin
>            Reporter: Remco
>            Assignee: Freeman Fang
>            Priority: Minor
>
> We use the cxf maven plugin to generate ws code from a set of wsdl's.
> But we run into an issue with cxf, it generates isX methods instead of getX methods for
java.lang.Boolean types. This is not in accordance with the javabeans spec. According to the
java spec it is only allowed to use isX methods for the basic boolean type.
> Other frameworks which try to retrieve the readmethods using the java.beans.PropertyDescriptor
throw a NoSuchMethodException on the read method for this field since it expects a getX method
instead of an isX method.
> After googling a bit I found this plugin: http://cxf.apache.org/cxf-xjc-boolean.html
> But this plugin also generates getX methods for the basic boolean type, which will also
not work with frameworks using the PropertyDescriptor since it then expects an isX method.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message