Commit Graph

1343 Commits

Author SHA1 Message Date
Jens Geyer
5bc8b5a3a5 THRIFT-3302 Go JSON protocol should encode Thrift byte type as signed integer string
Client: Go
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>

This closes #591
2015-09-05 12:50:24 +02:00
jfarrell
6949b7c969 THRIFT-2981: IDL with no namespace produces unparsable PHP
Client: php
Patch: Randy Abernethy

The compiler is generating the namespace statement even when there isn't one, which blows up the PHP interpreter. Patch supresses service and type file output of namespace unless there actually is one.
2015-08-25 01:09:35 -04:00
jfarrell
f13e431bab THRIFT-3305: Missing dist files for 0.9.3 release candidate
Client: build
Patch: jfarrell

Adds missing files to dist
2015-08-25 00:39:29 -04:00
Henrique Mendonça
738143cf36 THRIFT-3293 JavaScript: null values turn into empty structs in constructor
Patch: Håkon Hitland
2015-08-16 19:17:33 +10:00
Jens Geyer
4fed1af570 THRIFT-3178 glib C does not compile
Client: c_glib
Patch: Simon South <ssouth@simonsouth.com>

This closes #581
2015-08-08 00:24:13 +02:00
Randy Abernethy
8dbe5f60a7 THRIFT-2199:Remove dense protocol
Client: C++ library and compiler
Patch: Randy Abernethy
2015-08-01 22:57:02 -07:00
Jens Geyer
54f392b8fd THRIFT-2832 c_glib: Handle string lists correctly
Client: c_glib
Patch: Simon South <ssouth@simonsouth.com>

The compiler now correctly generates code for string lists (i.e. variables of type list<string>) that are
- Passed as a parameter to a service method,
- Returned from a service method or
- Assigned a default value.

Added a unit test that covers containers (initially only string lists) used as parameters to and return values from
service methods, and as members with default values inside structs.
2015-08-05 21:45:10 +02:00
Simon South
b28e3ccdcb THRIFT-3288 c_glib: Compiler: Gently refactor functions
This change gently refactors a handful of recently modified
functions to

- Wrap lines at 80 columns,

- Improve readability (making the layout of the compiler's source
  code more closely match that of the code it's generating),

- Use more consistently the indent_up/indent_down and
  scope_up/scope_down helper functions rather than embedding
  formatting characters directly, and

- Improve slightly the formatting of the generated code.
2015-08-03 22:10:23 +02:00
Simon South
7bc907a959 THRIFT-3288 c_glib: Compiler: Silence unused-parameter warnings
This change modifies the generated class and interface initializers
so they don't generate "unused parameter" warnings when compiled.
2015-08-03 22:10:23 +02:00
Simon South
c83a2b5185 THRIFT-3288 c_glib: Compiler: Don't mix declarations and code
This change moves variable declarations to the top of code blocks
in the generated code, resolving a number of "ISO C90 forbids mixed
declarations and code" warnings when building the unit tests.
2015-08-03 22:10:23 +02:00
Simon South
c1febebef6 THRIFT-3284 c_glib: Compiler: Omit processing-function defs for empty services
This closes: #575
2015-08-02 16:19:06 +02:00
Jens Geyer
a2e0c5075d THRIFT-3260 multiple warnings in c_glib tutorial
Client: c_glib
Simon South <ssouth@simonsouth.com>

This closes #573

Here are additional changes that should really and truly resolve all the warnings generated when building the c_glib tutorial:

Compiler:
- Do not output a trailing comma in exception-enum definitions.
- Move variable declarations to avoid mixing declarations and code in generated code.
- Improve the readability of affected code blocks (and rely on indent_up and indent_down for indentation).
Library
- Use only C-style comments in headers included by clients.
Tutorial
- Move THRIFT_UNUSED_VAR calls to avoid mixing declarations and code.
2015-07-31 23:23:41 +02:00
Jens Geyer
f6eebba4a0 THRIFT-3260 multiple warnings in c_glib tutorial
Client: c_glib
Patch: Simon South <ssouth@simonsouth.com>

This closes #572

Tutorial:
- Silence unused-function warnings
- Remove spurious ";" from GObject type macro
Compiler:
- Suppress unused-var warnings in client initializers
- Omit spurious ";" after GObject type macros
2015-07-30 21:11:23 +02:00
Jim King
f5f1b35a7d THRIFT-3053: Added perl SSL Socket support, split SSLSocket and SSLServerSocket out from their base classes, fixed THRIFT-3191 generated perl compiler exception handling code, added perl to make cross, fixed THRIFT-3189 allowing perl to listen on a specific interface through construction arguments. Did not add support in the perl client SSLSocket to verify server certificate authenticity at this time. 2015-07-30 14:19:49 +02:00
Jens Geyer
46ab187bb5 THRIFT-3273 c_glib: Generated code tries to convert between function and void pointers
Client: c_glib
Patch: Simon South <ssouth@simonsouth.com>

This closes #568
2015-07-30 00:01:04 +02:00
Jens Geyer
57ac33ea1a THRIFT-3264 Fix Erlang 16 namespaced types
Client: Erlang
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>

This closes #566
2015-07-28 23:12:52 +02:00
Jens Geyer
8677719180 THRIFT-2957 warning: source file %s is in a subdirectory, but option 'subdir-objects' is disabled
Client: Compiler General
Patch: Simon South

This closes #563
2015-07-27 23:52:13 +02:00
Jens Geyer
e33d16520a THRIFT-3255 Thrift generator doesn't exclude 'package' keyword for thrift property names breaking java builds
Client: Compiler General
Patch: Jens Geyer

This closes #561
2015-07-25 15:23:45 +02:00
ben-craig
02bade1583 THRIFT-3247 Generate a C++ thread-safe client
Client: cpp
Patch: Ben Craig <bencraig@apache.org>
2015-07-17 08:40:48 -05:00
Frederik Gladhorn
e15ade77cb THRIFT-3244 TypeScript: fix namespace of imported types 2015-07-16 23:52:42 +02:00
Kaspar Fenner
8b01553758 THRIFT-3248 Remove additional comma in TypeScript method signature
Fixes a bug which adds an additional comma in the method signature
of methods with no (zero) parameters.

Signed-off-by: Kaspar Fenner <kaspar.fenner@siemens.com>
2015-07-16 23:05:43 +02:00
ben-craig
fae08e774c THRIFT-3246 Reduce the number of trivial warnings in Windows C++ CMake builds
Client: cpp
Patch: Ben Craig <bencraig@apache.org>

This closes #553
2015-07-15 11:34:47 -05:00
Felipe Barriga Richards
5af2d99c5e THRIFT-3223 TypeScript: Added support for maps of enums. 2015-07-13 15:25:58 +02:00
Felipe Barriga Richards
20a25519c4 THRIFT-3222 TypeScript: Fix enum generation (remove quotes) 2015-07-12 21:49:45 +02:00
Jens Geyer
01a77ab01e THRIFT-3230: transform typedef when getting type name
Client: Python
Patch: 软件工程师李飛 <lifei@7v1.net>

This closes #545

Python compiler generates wrong code if there is function throwing a typedef of exception with another namespace. We should use the real type name instead of  the name of typedef.
2015-07-11 11:46:38 +02:00
Jens Geyer
90c60e340c THRIFT-3239 Limit recursion depth
Client: Haxe
Patch: Jens Geyer

This closes #547
2015-07-11 01:19:53 +02:00
Ben Craig
8b4e155f04 Adding audit tool to the compiler's pre-fab Visual Studio project 2015-07-09 20:58:04 -05:00
Ben Craig
012dd4e3fc Renamed, relocated, and reformated the audit tool's readme file 2015-07-09 20:55:53 -05:00
Jens Geyer
4018036980 THRIFT-3235 C#: Limit recursion depth to 64
Client: C#
Patch: Jens Geyer
2015-07-09 23:06:41 +02:00
Jens Geyer
d47fcdd66d THRIFT-3234 Delphi: Limit recursion depth to 64
Client: Delphi
Patch: Jens Geyer
2015-07-09 22:20:12 +02:00
Ben Craig
cfaadcc4ad THRIFT-3231 CPP: Limit recursion depth to 64
Client: cpp
Patch: Ben Craig <bencraig@apache.org>
2015-07-08 20:50:33 -05:00
Ben Craig
262cfb4189 THRIFT-3221 Create a tool to audit network compatibility between two
.thrift files
Client: Compiler (general)
Patch: Sanjay Poojary <sanjay.poojary@ni.com>, Ben Craig
<bencraig@apache.org>, and Zach Hindes <zach.hindes@ni.com>

This closes #541
2015-07-08 20:37:15 -05:00
Jens Geyer
6e40376568 THRIFT-3220 Option to suppress @Generated Annotation entirely
Client: Java
Patch: notona <notona@gmail.com> & Jens Geyer

This closes #540

This change contains:
- the work of notona from GitHub PR 540
- additional changes I made to align THRIFT-3220 and THRIFT-3193
2015-07-05 19:24:11 +02:00
Jens Geyer
5cf9d7744c THRIFT-3214 Add Erlang option for using maps instead of dicts
Client: Erlang
Patch: Michael Oliver <mikemboliver@gmail.com>

This closes #535
2015-07-02 21:07:17 +02:00
Jens Geyer
7702536249 THRIFT-2921 Make Erlang impl ready for OTP 18 release (dict/0 and set/0 are deprecated)
Client: Erlang
Patch: Michael Oliver <mikemboliver@gmail.com>

This closes #533
2015-06-30 21:31:50 +02:00
Jens Geyer
24ef0d6f51 THRIFT-3193 Option to supress date value in @Generated annotation
Client: Java
Patch: Roshan George <roshan@arjie.com>

This closes #531
2015-06-30 21:31:48 +02:00
Jens Geyer
507075607f THRIFT-3210 (uncompileable) code generated for server events while are events not enabled
Client: Delphi
Patch: Jens Geyer
2015-06-29 11:30:40 +02:00
Henrique Mendonça
15d904240e THRIFT-3122 Javascript struct constructor should properly initialize struct and container members from plain js arguments
Patch:  Igor Tkach

This closes #519
2015-06-25 22:31:41 +10:00
Jens Geyer
86a51e7eca THRIFT-3170: Add a flag to allow the ignoring of common initialisms in Go
Client: Go
Patch: Paul Magrath <paul@paulmagrath.com>

This closes #508
2015-06-01 21:09:17 +02:00
Henrique Mendonça
c0e4a8dc07 Revert "THRIFT-3122 Javascript struct constructor should properly initialize struct and container members from plain js arguments"
This reverts commit 1568aef7d4.
2015-06-01 23:23:22 +10:00
Jens Geyer
b3b7d0457a THRIFT-3174: Modify initialism code in Go compiler to check first word
Client: Go
Patch: Paul Magrath <paul@paulmagrath.com>

This closes #509
2015-05-30 22:56:01 +02:00
Henrique Mendonça
1568aef7d4 THRIFT-3122 Javascript struct constructor should properly initialize struct and container members from plain js arguments
Client: Node and JS
Patch: Igor Tkach

    This closes #476
2015-05-27 22:15:46 +10:00
Jens Geyer
549a9e1e6d THRIFT-3160 go: make generated enum types implement TextMarshaler and TextUnmarshaler
Client: Go
Patch: Konstantin Shaposhnikov <k.shaposhnikov@gmail.com>

This closes #507
2015-05-21 22:20:31 +02:00
Jens Geyer
33eef3534f THRIFT-3150: fixed help text (thanks to Konstantin who catched this)
Client: Go
Patch: Jens Geyer
2015-05-21 02:16:47 +02:00
Jens Geyer
9265222b3f THRIFT-3150: fixed help text (thanks to Konstantin who catched this)
Client: Go
Patch: Jens Geyer
2015-05-21 02:13:18 +02:00
Jens Geyer
70219e108a THRIFT-3150 Add an option to make Read and Write methods private
Client: Go
Patch: Konstantin Shaposhnikov <k.shaposhnikov@gmail.com>, slightly modified by Jens Geyer

This closes #505
2015-05-20 23:36:50 +02:00
Konrad Grochowski
1f6e380c5d make style applied 2015-05-18 19:47:28 +02:00
Konrad Grochowski
3b115dfa61 THRIFT-727 - C++: what() method of generated exceptions will provide more information
Patch: Anna Dymek <aadymek@gmail.com>
Client: C++

This closes #469
2015-05-18 19:47:23 +02:00
Roger Meier
880a2b32e5 doc: update compiler CMake build and update .gitignore 2015-05-16 22:40:17 +02:00
Roger Meier
4ead520841 THRIFT-3155 move contrib/mingw32-toolchain.cmake to build/cmake/ 2015-05-16 21:09:18 +02:00