Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
Problem
service Foobar { void Test( 1: i32 someValue = 42) }
The default of 42 is set into the Test_Args structure in most languages, but later overwritten because the generated calls do completely ignore these defaults. One has always to call:
client.Test( 1); client.Test( 42); client.Test( 4711);
instead of
client.Test( 1);
client.Test( ); // 42 is the default
client.Test( 4711);
Applies to
Most (all?) languages.
Todo
Create a sub-task for your particular language and add the patch.
Attachments
Issue Links
- Dependency
-
THRIFT-3108 Defaulted struct parameters on a service generates invalid Haskell.
- Closed
- relates to
-
THRIFT-2374 No code generated for defaults when complex constants are referenced
- Open