Manoj PG created THRIFT-3171:
--------------------------------
Summary: copyBinary line created when a tyoedef list<> is sued as
method argument
Key: THRIFT-3171
URL: https://issues.apache.org/jira/browse/THRIFT-3171
Project: Thrift
Issue Type: Bug
Components: Java - Compiler
Affects Versions: 0.9.2
Environment: Solaris Sparc
Reporter: Manoj PG
When a list<struct> is typedef and used as a method param, the generated Java
source file has the following code which fails to compile.
Generated code:
public saveEmployees_args(saveEmployees_args other) {
if (other.isSetListEmployees()) {
this.listEmployees =
org.apache.thrift.TBaseHelper.copyBinary(other.listEmployees);
;
}
}
The idl that reproduces the problem:
struct Employee
{
1:string firstName,
2:string lastName,
}
typedef list<Employee> TEmployeeList
service CB {
void saveEmployees(1:TEmployeeList listEmployees);
}
If we do not use the typedef Java compilation is fine.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)