Using a map in an exception type will generate a class that does not implement
Comperable-> that will generate a stub that does not compile
-------------------------------------------------------------------------------------------------------------------------------------------
Key: THRIFT-668
URL: https://issues.apache.org/jira/browse/THRIFT-668
Project: Thrift
Issue Type: Bug
Components: Compiler (Java)
Affects Versions: 0.2
Reporter: Aron Sogor
Generate code in stub:
lastComparison = TBaseHelper.compareTo(authExp, typedOther.authExp); //
FAILS as autheException is not comperable
if (lastComparison != 0) {
return lastComparison;
}
Using an idl like:
exception AuthException
{
1: string key,
2: map<string, string> messageParams
}
Take out the map->AuteException is Comperable->problem worked around
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.