[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rampart-c-dev
Subject:    [jira] [Closed] (AXISCPP-836) Generated stubs of array types have additional overloaded constructor
From:       "nadir amra (JIRA)" <axis-c-dev () ws ! apache ! org>
Date:       2012-06-12 4:53:43
Message-ID: 1627925585.5810.1339476823363.JavaMail.jiratomcat () issues-vm
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/AXISCPP-836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

nadir amra closed AXISCPP-836.
------------------------------

    Resolution: Won't Fix

I do not see the value since one would have to also try to do this for complex \
types....which is a much harder thing to do.  Closing issue.  
> Generated stubs of array types have additional overloaded constructor in which you \
>                 pass the size of the array to be created.
> ----------------------------------------------------------------------------------------------------------------------------
>  
> Key: AXISCPP-836
> URL: https://issues.apache.org/jira/browse/AXISCPP-836
> Project: Axis-C++
> Issue Type: Improvement
> Components: Client - Stub
> Environment: n/a
> Reporter: Fred Preston
> Priority: Minor
> Attachments: BeanParamWriter.java, ParmHeaderFileWriter.java
> 
> 
> From a user perspective, it would be good to get the generated stubs of array types \
> to have an additional overloaded constructor in which you pass the size of the \
> array to be created.  For example:- For a string array:-
> stringArrayType::stringArrayType( int iSize)
> {
> stringItem.m_Size = iSize;
> stringItem.m_Array = new xsd__string [iSize];
> for( int iIndex = 0; iIndex < iSize; iIndex++)
> {
> stringItem.m_Array[iIndex] = "";
> }
> }
> Or/And:
> longArrayType::longArrayType( int iSize)
> {
> longItem.m_Size = iSize;
> longItem.m_Array = (xsd__long **) new xsd__long * [iSize];
> for( int iIndex = 0; iIndex < iSize; iIndex++)
> {
> longItem.m_Array[iIndex] = new xsd__long();
> *longItem.m_Array[iIndex] = (xsd__long) 0;
> }
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: \
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more \
information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic