[ 
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

Reply via email to