Return-Path: Delivered-To: apmail-ws-kandula-dev-archive@www.apache.org Received: (qmail 62767 invoked from network); 20 Mar 2010 19:36:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Mar 2010 19:36:51 -0000 Received: (qmail 99177 invoked by uid 500); 20 Mar 2010 19:36:48 -0000 Delivered-To: apmail-ws-kandula-dev-archive@ws.apache.org Received: (qmail 98680 invoked by uid 500); 20 Mar 2010 19:36:48 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 98670 invoked by uid 99); 20 Mar 2010 19:36:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Mar 2010 19:36:48 +0000 X-ASF-Spam-Status: No, hits=-1080.9 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Mar 2010 19:36:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4BEC6234C4B1 for ; Sat, 20 Mar 2010 19:36:27 +0000 (UTC) Message-ID: <1138921263.387641269113787310.JavaMail.jira@brutus.apache.org> Date: Sat, 20 Mar 2010 19:36:27 +0000 (UTC) From: "Andreas Veithen (JIRA)" To: java-dev@axis.apache.org Subject: [jira] Resolved: (AXIS2-4640) WSDL2Java Generated Non-sensible Code In-Reply-To: <938963343.37431267466585721.JavaMail.jira@brutus.apache.org> 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/AXIS2-4640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andreas Veithen resolved AXIS2-4640. ------------------------------------ Resolution: Fixed Fix Version/s: 1.6 Changed the templates to generate more optimized code. > WSDL2Java Generated Non-sensible Code > ------------------------------------- > > Key: AXIS2-4640 > URL: https://issues.apache.org/jira/browse/AXIS2-4640 > Project: Axis2 > Issue Type: Bug > Components: kernel > Affects Versions: 1.5.1 > Environment: OpenSuse 11.2, JDk 1.6.0 > Reporter: Vy Ho > Assignee: Andreas Veithen > Priority: Minor > Fix For: 1.6 > > > Java classes that are generated from Web service Parameters (types) have non-sensible code block (please excuse me for using the term). > These happens setter methods: > Take the following example generated code: > public void setBarcode(java.lang.String param) { > if (param != null) { > //update the setting tracker > localBarcodeTracker = true; > } else { > localBarcodeTracker = true; > } > this.localBarcode = param; > } > localBarcodeTracker is always set to true in either case. This either is a bug, or it's redundant check. This happens to every other property setters that I have seen so far. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org