thrift/lib
Jake Farrell f9f01fa1e0 THRIFT-1394:Treatment of optional fields is not consistent between C++ and Java
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
2012-01-27 04:48:26 +00:00
..
as3 THRIFT-690 add new ApplicationExceptions (INTERNAL_ERROR, PROTOCOL_ERROR) to the following languages: as3, c_glib, cocoa, cpp, erl, hs, js, nodejs, ocaml, perl, py, rb 2011-08-03 09:49:27 +00:00
c_glib Thrift-1426: Dist package missing files for release 0.8 2011-11-16 12:58:36 +00:00
cocoa Thrift-1340: Add support of ARC to Objective-C 2011-12-06 01:07:17 +00:00
cpp THRIFT-1394:Treatment of optional fields is not consistent between C++ and Java 2012-01-27 04:48:26 +00:00
csharp Thrift-1456: System.Net.HttpWebRequest' does not contain a definition for 'Proxy' 2011-12-09 02:21:37 +00:00
delphi THRIFT-1485 Performance: pass large and/or refcounted arguments as "const" 2012-01-08 21:51:08 +00:00
erl THRIFT-1357: Erlang dependency breaks build 2011-09-26 15:29:03 +00:00
go THRIFT-1350: Go library code does not build against latest release 2011-09-19 23:38:39 +00:00
hs Updating trunk to 0.9.0 version. 2011-11-30 02:09:46 +00:00
java Thrift-1465:Visibility of methods in generated java code 2012-01-27 04:01:54 +00:00
javame/src/org/apache/thrift THRIFT-1255. javame: Mismatch of method name between JavaME's lib and generated code (compareTo/compareObjects) 2011-08-02 22:37:16 +00:00
js THRIFT-1486 Javascript manual testserver not returning content types 2012-01-07 20:32:24 +00:00
nodejs THRIFT-1267 Node.js can't throw exceptions 2012-01-12 21:38:29 +00:00
ocaml Thrift-1322: OCaml lib fail to compile: Thrift.ml line 305, int vs int32 mismatch 2011-09-06 16:26:58 +00:00
perl Updating trunk to 0.9.0 version. 2011-11-30 02:09:46 +00:00
php THRIFT-1478 TJSONProtocol in PHP 2012-01-24 20:18:07 +00:00
py THRIFT-1480. py: remove tabs, adjust whitespace and address PEP8 warnings 2012-01-03 17:32:30 +00:00
rb THRIFT-1449. rb: Ruby client does not work on solaris (?) 2011-12-13 18:33:15 +00:00
st THRIFT-643. smalltalk: Generated code doesnt load on Squeak3.10.2-7179-basic and PharoCore-1.0-10491rc1 images 2010-01-19 05:18:55 +00:00
Makefile.am Thrift-1426: Dist package missing files for release 0.8 2011-11-16 12:58:36 +00:00