Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 35504 invoked from network); 13 Oct 2005 09:56:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Oct 2005 09:56:29 -0000 Received: (qmail 95791 invoked by uid 500); 13 Oct 2005 09:56:29 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 95770 invoked by uid 500); 13 Oct 2005 09:56:28 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 95759 invoked by uid 99); 13 Oct 2005 09:56:28 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Oct 2005 02:56:26 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 1F3E1511 for ; Thu, 13 Oct 2005 11:56:05 +0200 (CEST) Message-ID: <1675381232.1129197364905.JavaMail.jira@ajax.apache.org> Date: Thu, 13 Oct 2005 11:56:04 +0200 (CEST) From: "Dushshantha Chandradasa (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Commented: (AXISCPP-853) Generated getters and setters wrong for any types In-Reply-To: <116094078.1129196824855.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXISCPP-853?page=comments#action_12331976 ] Dushshantha Chandradasa commented on AXISCPP-853: ------------------------------------------------- i introduced this new naming convension for any type to handle multiple any elements in a complex type. few days back, this was working properly. The code snippet responsible for writing above code is : In BeanParamWriter private void writeGetSetMethods() throws WrapperFault { ...... if (attribs[i].isAnyType()){ anyCounter += 1; parameterName = parameterName + Integer.toString(anyCounter); <------- Adds the count in front of the param name. } writer.write("\n" + properParamName + " * " + classname + "::get" + parameterName + "()\n{\n"); <--------- the change in param name doesnt apply here. writer.write("\t" + "return " + parameterName + " ; \n}\n"); <----------- But the change applies here.... writer.write("\n" + "void " + classname + "::set" + parameterName + "(" + properParamName + " * pInValue)\n{\n"); writer.write("\t" + parameterName + " = pInValue ; \n"); .... } > Generated getters and setters wrong for any types > ------------------------------------------------- > > Key: AXISCPP-853 > URL: http://issues.apache.org/jira/browse/AXISCPP-853 > Project: Axis-C++ > Type: Bug > Components: WSDD Processing > Versions: current (nightly) > Environment: All > Reporter: Dushshantha Chandradasa > > ExtencibilityQuery test fails to compile because the getter/ setter name is incorrect. > In ExtencibilityType.hpp, method declaration is as follows: > AnyType* getany1(); > void setany1(AnyType* InValue); > But in ExtencibilityType.cpp, the identifier is wrong. > AnyType* ExtensibilityType::getany() <------------- wrong identifier (should be getany1()) > { > return any1 ; > } > void ExtensibilityType::setany(AnyType* InValue) <----------------- wrong identifier (should be setany1) > { > any1 = InValue ; > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira