mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 18:58:51 +00:00
f9f01fa1e0
Client: cpp Patch: Diwaker Gupta In CPP, all optional fields are guarded by the isset helper struct. On Java, however, the generated code takes advantage of nullable types: for containers, structs, exceptions, enums, and, notably, strings, the generator elides explicit use of an "isset" bit vector and instead emits checks of the form "field null". This leads to varying behavior between the two languages: an optional string field with a default value will have {{isset[fieldid]}} false on C, but the equivalent test in Java will be true. git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1236529 13f79535-47bb-0310-9956-ffa450edef68 |
||
---|---|---|
.. | ||
AllProtocolTests.cpp | ||
AllProtocolTests.tcc | ||
Benchmark.cpp | ||
DebugProtoTest_extras.cpp | ||
DebugProtoTest.cpp | ||
DenseProtoTest.cpp | ||
GenericHelpers.h | ||
JSONProtoTest.cpp | ||
Makefile.am | ||
OptionalRequiredTest.cpp | ||
RWMutexStarveTest.cpp | ||
SpecializationTest.cpp | ||
TBufferBaseTest.cpp | ||
TFDTransportTest.cpp | ||
TFileTransportTest.cpp | ||
ThriftTest_extras.cpp | ||
TMemoryBufferTest.cpp | ||
TPipedTransportTest.cpp | ||
TransportTest.cpp | ||
UnitTestMain.cpp | ||
ZlibTest.cpp |