Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4DBC711E1C for ; Thu, 11 Sep 2014 10:59:34 +0000 (UTC) Received: (qmail 12002 invoked by uid 500); 11 Sep 2014 10:59:33 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 11963 invoked by uid 500); 11 Sep 2014 10:59:33 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 11952 invoked by uid 99); 11 Sep 2014 10:59:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2014 10:59:33 +0000 Date: Thu, 11 Sep 2014 10:59:33 +0000 (UTC) From: "Remco (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-5997) Generating isX method instead of getX method for java.lang.Boolean MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-5997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14129878#comment-14129878 ] Remco commented on CXF-5997: ---------------------------- That would be a workaround for this issue. I submitted this issue as a minor issue since there are several workarounds for this issue. But it is still a bug within cxf since it currently is not following the javabeans spec. Also, this issue is not a duplicate of 4899 since this issue is with cxf itself and not with the plugin. > 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)