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 18F707EAC for ; Mon, 18 Jul 2011 22:35:23 +0000 (UTC) Received: (qmail 61589 invoked by uid 500); 18 Jul 2011 22:35:23 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 61537 invoked by uid 500); 18 Jul 2011 22:35:22 -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 61529 invoked by uid 99); 18 Jul 2011 22:35:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jul 2011 22:35:22 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jul 2011 22:35:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1D0A742B7D for ; Mon, 18 Jul 2011 22:34:58 +0000 (UTC) Date: Mon, 18 Jul 2011 22:34:58 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: <900523226.2022.1311028498115.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1250445595.219.1310997718129.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (CXF-3662) wadl2java : Return types aren't generated properly on server interfaces for methods with more than 1 response element. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-3662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Beryozkin resolved CXF-3662. ----------------------------------- Resolution: Fixed Fix Version/s: 2.5 2.4.2 Assignee: Sergey Beryozkin > wadl2java : Return types aren't generated properly on server interfaces for methods with more than 1 response element. > ---------------------------------------------------------------------------------------------------------------------- > > Key: CXF-3662 > URL: https://issues.apache.org/jira/browse/CXF-3662 > Project: CXF > Issue Type: Bug > Components: Tooling > Affects Versions: 2.4.1 > Environment: Windows 7 32 bit > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing) > Reporter: Ceri Hughes > Assignee: Sergey Beryozkin > Fix For: 2.4.2, 2.5 > > > My wadl file frequently has more than 1 response element in the method elements, i.e.: > {code} > > Gets default user configuration values. > > > > > > > > {code} > If there is more than 1 response element, the wadl2java tool assumes that the return type from generated methods is always void. There is a line of code that checks for exactly 1 response element - if there isn't 1 (i.e. 0 or more than 1), then void is assumed. Can it not take the representation of the 1st response in a case when there is more than 1 (or better, the representation from the response with a success status)? > See the first line of org.apache.cxf.jaxrs.ext.codegen.SourceGenerator.writeResponseType -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira