Commit Graph

1666 Commits

Author SHA1 Message Date
James E. King, III
0ad20bdbfe THRIFT-4351: use travis build stages to optimize build,
avoiding duplicate rebuilds of the same image, and also
allow personal docker hub repositories for private fork
builds to be optimized. Move ubsan build to artful image
because it catches more stuff and fix what was found.

THRIFT-4345: solidify docker build strategy for maximum
coverage: trusty, xenial, artful as stock as they can be

THRIFT-4344: add top level language summary markdown and
update readme with a new image on the layered architecture

THRIFT-3847: remove VERSION macro from config.h which
was causing a conflict on artful builds.

THRIFT-4359: fix haxe map/set decode when key is binary,
as a missing break statement caused it to use an int
during decode

This closes #1389
2017-10-19 11:29:04 -04:00
Brian Forbis
8b8a8efea1 THRIFT-4355 Fix javascript indentation of default values
Client: js

This closes #1388
2017-10-10 08:46:46 -07:00
James E. King, III
48ba736a58 THRIFT-4131: js / WebSocket / fix handling oneway methods
Client: js
Patch: Martin Hejnfelt <mh@newtec.dk>

This closes #1372
2017-09-24 20:35:01 -07:00
Brian Forbis
a17ef79e8f THRIFT-4334: Fix perl indentation for default attribute values of
array / hashes / objects
Client: Perl

This closes #1373
2017-09-24 20:32:56 -07:00
Deniss Afonin
d3cda9c2f3 THRIFT-3357: Generate EnumSet/EnumMap where elements/keys are enums
Client: Java

This closes #1253
2017-09-21 13:57:09 -07:00
oryahud
8506121b3e THRIFT-4287: Add c++ compiler no_skeleton flag option
Client: C++

This closes #1333
2017-09-21 10:03:00 -07:00
Ivan Sadikov
04d983c14e THRIFT-4330: Allow unused crates in Rust files
Client: Rust
Patch: Ivan Sadikov <ivan.sadikov@team.telstra.com>

This closes #1360
2017-09-19 22:02:43 +02:00
Jens Geyer
078281dcd3 THRIFT-4324 field names can conflict with local vars in generated code
Client: Delphi
Patch: Jens Geyer
2017-09-08 23:55:02 +02:00
Jens Geyer
17c3ad9c8a THRIFT-4318 Delphi performance improvements
Client: Delphi
Patch: Jens Geyer

This closes #1348
2017-09-07 22:14:00 +02:00
Dirk Sandbrink
05c672b4d0 THRIFT-4290: Fixed csharp:nullable code generation for non-required enum fields with default values
Client: cs

This closes #1347
2017-09-07 10:31:35 -07:00
Charlie Zhang
e9ede89c1c THRIFT-4275: add support for zope.interface exclusively when generating code for python
Client: py

This closes #1324
2017-09-06 21:19:42 -07:00
James E. King, III
113614b2e5 fix flex syntax in compiler readme
Patch: Zhaopin <daishun9@gmail.com>

This closes #1332
2017-09-04 18:28:29 -07:00
James E. King, III
d7142b7e4f THRIFT-4295: rework the docker build images, updating them and tuning the travis builds
This closes #1340
2017-09-04 18:09:34 -07:00
jiangq
de112fbb0d change js generator for simple using in object params
Client: node.js

This closes #1034
2017-08-12 16:23:06 -07:00
James E. King, III
82ae9575cd THRIFT-2221: detect C++11 and use std namespace for memory operations (smart_ptr)
Client: C++

This closes #1328
2017-08-10 13:27:21 -04:00
David Hull
0a8c34ceed THRIFT-4279 Wrong path in include directive in generated Thrift sources
Client: Erlang
Patch: David Hull <david.hull@openx.com>

This closes #1329
2017-08-09 14:58:31 +02:00
David Hull
0eda909573 THRIFT-4270 Generate Erlang mapping functions for const maps and lists
Client: Erlang
Patch: David Hull <david.hull@openx.com>

This closes #1320
2017-08-02 22:20:42 +02:00
David Hull
ec2a252136 THRIFT-4269 Don't append '.' to Erlang namespace if it ends in '_'.
Client: Erlang
Patch: David Hull <david.hull@openx.com>

This closes #1319
2017-08-01 00:38:55 +02:00
Mike Morton
3ba4ecf3e0 THRIFT-4257 Typescript async callbacks do not provide the correct types
Client: Typescript
Patch: Mike Morton <michaeldouglasmorton@gmail.com>

This closes #1310
2017-07-30 12:00:06 +02:00
taozle
5c302e02c4 THRIFT-4260 Go context generation issue. Context is parameter in Interface not in implementation
Client: Go
Patch: taozle <zhangliyang26@gmail.com>

This closes #1312
2017-07-25 00:17:30 +02:00
taozle
c0d384a38c THRIFT-4236 Support context in go generated code
Client: Go
Patch: taozle <zhangliyang26@gmail.com>

This closes #1309
2017-07-22 19:42:48 +02:00
Eric Conner
c34653f751 THRIFT-2642 Recursive structs don't work in python
Client: Python
Patch: Eric Conner <eric@pinterest.com>

This closes #1293
2017-07-06 22:59:10 +02:00
taozle
5b4c6bfc62 THRIFT-4236: Add context support for go server.
Client: Go
Patch: taozle <zhangliyang26@gmail.com>

This closes #1298
2017-07-01 17:23:56 +02:00
Stig Bakken
c0e353500d THRIFT-4238 JSON generator: make annotation-aware
Client: json
Autor: Stig Bakken <stig@zedge.net>

This closes #1299
2017-07-01 15:51:14 +02:00
Jens Geyer
c55fdb9534 THRIFT-4231 TJSONProtocol throws unexpected non-Thrift-exception on null strings
Client: C#
Patch: Jens Geyer

This closes #1291
2017-06-17 17:59:46 +02:00
D. Can Celasun
2b1b32c283 THRIFT-3703 Unions Field Count Does Not Consider Map/Set/List Fields
Client: Go
Patch: D. Can Celasun <can@dcc.im>

This closes #1281
2017-05-31 22:56:52 +02:00
Allen George
5862099f37 THRIFT-4196 Support recursive types in Rust
Client: rs
Patch: Allen George <allen.george@gmail.com>

This closes #1267
2017-05-13 00:01:05 +02:00
Allen George
bc1344d55f THRIFT-4186 Add travis build for Rust
Client: rs
Patch: Allen George <allen.george@gmail.com>

This closes #1260
2017-05-11 01:35:33 +02:00
Allen George
0e22c362b9 THRIFT-4176: Implement threaded server for Rust
Client: rs

* Create a TIoChannel construct
* Separate TTransport into TReadTransport and TWriteTransport
* Restructure types to avoid shared ownership
* Remove user-visible boxing and ref-counting
* Replace TSimpleServer with a thread-pool based TServer

This closes #1255
2017-04-27 08:46:02 -04:00
Deniss Afonin
3311a9b237 THRIFT-4177 fix java deep copy
Client: Java

Java compiler produces deep copy constructor that could make shallow copy accidentally.

This closes #1254
2017-04-19 12:38:14 -04:00
Allen George
92e1c409c7 THRIFT-4099: Derive Hash trait for Rust structs
Client: rs

This closes #1246
2017-04-07 09:24:41 -04:00
Gonzalo Aguilar Delgado
fcf4476792 THRIFT-4152: Make a patch to fix #4152 at least for structs
Documentation

This closes #1230
2017-04-01 10:56:21 -04:00
James E. King, III
2c0badd660 THRIFT-3823: Use 'pre' HTML tag when generating non escaped documentation
Patch: Maxime Mouial <maxime.mouial@scmfrance.fr>

This closes #1009
2017-04-01 10:38:13 -04:00
James E. King, III
177c37ce85 THRIFT-4069: perl library cleanup - namespaces, versioning, exception fixes
Client: perl

This closes #1220
2017-03-30 17:09:04 -04:00
kufd
1360270eb8 THRIFT-4126: implement required fields validation in php extension when validate compiler option is enabled
Client: php

This closes #1215
2017-03-30 16:42:11 -04:00
Jens Geyer
7470995ce4 THRIFT-4137 Fix remaining undefined behavior invalid vptr casts in Thrift Compiler 2017-03-27 22:50:16 +02:00
Chao Sun
9f71e00b00 THRIFT-4114: Space after '///' in doc comments
Client: rs

This closes #1224
2017-03-27 08:52:12 -04:00
Jens Geyer
971d077807 THRIFT-4136 Align is_binary() method with is_string() to simplify those checks
Client: Compiler (general)
Patch: Jens Geyer

This closes #1221
2017-03-26 19:54:50 +02:00
Jim Apple
147c2849af THRIFT-2026: Eliminate some undefined behavior in C/C++
Clients: glib, C++
Patch: Jim Apple <jbapple-impala@apache.org>

This closes #1214

This patch fixes some undefined behavior were found using Clang's
UndefinedBehaviorSanitizer (UBSan). To check for undefined behavior,
run /build/docker/scripts/ubsan.sh. This is run during CI builds, as
well.

The examples of the types of undefined behavior fixed in this commit
are:

1. Enumerations exhibit undefined behavior when they have values
   outside of a range dependent on the values of their enumerators, as
   specified in C++14's chapter 7.2 ("Enumeration declarations"),
   paragraph 8.

2. Left shift of negative values, used in zigzag encoding, is
   undefined behavior. See 5.8 ("Shift operators"), paragraph 2 for
   C++ and 6.5.7 ("Bitwise shift operators"), paragraph 4 for C99 and
   C11.
2017-03-25 08:16:18 -04:00
James E. King, III
e576b26e39 THRIFT-4079: emit use clauses in Types.pm generated files as well (fix reopened defect)
Client: perl

This closes #1219
2017-03-22 14:42:52 -04:00
James E. King, III
07f59971bd THRIFT-4081: appveyor retooling - added mingw64 build as a second job to the CI build process
This closes #1205
2017-03-10 06:18:33 -05:00
D. Can Celasun
431732d39e THRIFT-4031: Fix invalid code generation for list of typedef'ed built-in types
Client: Go
Patch: D. Can Celasun <can@dcc.im>

This closes #1207

This commit reverts 12d430e723 which
caused invalid code to be generated for certain types.
2017-03-04 14:13:59 +01:00
James E. King, III
c89e172289 THRIFT-3921: fix ostream definitions so they are not inline because it confused template deduction
Client: C++

This closes #1204
2017-02-28 12:25:28 -05:00
Christopher Tubbs
5038466e5e THRIFT-1805 Provide option for handling RTEs
Client: Java

Adds a Java option to the generator to generate code which lets Thrift
handle RuntimeExceptions from a service, and present them as
TApplicationException to the client.

This closes #1186
2017-02-27 23:38:44 -05:00
D. Can Celasun
43fb34df28 THRIFT-4011 Sets of Thrift structs generate Go code that can't be serialized to JSON
Client: Go
Patch: D. Can Celasun <dcelasun@gmail.com>

This closes #1156
2017-02-21 22:32:49 +01:00
James E. King, III
06190874c8 THRIFT-4084: Add a SSL/TLS negotiation check to crossfeature to verify SSLv3 is not active and that at least one of TLSv1.0 through 1.2 are accepted.
Client: csharp, d, go, nodejs, perl

This closes #1197
2017-02-20 08:52:11 -05:00
Vivek Jain
655b9b6ef8 THRIFT-3921: Add ostream operator<< functions for enums (working with THRIFT-4060)
Client: C++

This closes #1083
This closes #1194
2017-02-18 14:30:46 -05:00
James E. King, III
b4c190b6ea THRIFT-4060 add better support in the cpp generator for custom ostream operators on structures
Client: C++

This closes #1172
2017-02-13 16:39:59 -05:00
James E. King, III
f535058572 THRIFT-4073: enum files are still being generated with unused imports
Client: Java
Patch: BCG <bgould@users.noreply.github.com>

This closes #1182
2017-02-09 10:03:03 -05:00
James E. King, III
d1482fe3e2 THRIFT-4079 add missing use clauses for included thrift sources in generated perl modules
Client: perl

This closes #1181
2017-02-09 07:53:44 -05:00
Allen George
8b96bfbf1e THRIFT-2945 Add Rust support
Client: Rust
Patch: Allen George <allen.george@gmail.com>

This closes #1147
2017-01-26 01:34:16 +01:00
James E. King, III
330b3f814a THRIFT-4034 compiler build fixes for macos sierra and some cmake cleanup for compiler
Compiler
Patch: Robert Lu <robberphex@gmail.com>

This closes #1161
2017-01-23 08:52:04 -05:00
James E. King, III
7edc8faefd THRIFT-3873: fix various compiler warnings and overflow errors
THRIFT-3847: change VERSION to PACKAGE_VERSION to avoid conflicts with third party or OS headers

This closes #1128
2017-01-20 10:12:06 -05:00
BCG
4f710aa4f4 THRIFT-3960 Inherited services in Lua generator are not named correctly
Client: Lua
Patch: Benjamin Gould <bgould@users.noreply.github.com>

This closes #1124
2017-01-10 23:02:00 +01:00
czm1989
59fab5adb4 THRIFT-4023 Skip unexpected field types on read/write
Client: Go
Patch: Chen Zhiming <chenzhiming@domob.cn>

This closes #1154
2017-01-10 21:28:05 +01:00
Volodymyr Gotra
b587a12a11 THRIFT-3933 Microsoft .Net Core library port and generator for this library
Client: .NET Core
Patch: Volodymyr Gotra <vgotra@gmail.com> PR #1088, with significant improvements by Jens Geyer <jensg@apache.org> PR #1149

This closes #1088
This closes #1149
2017-01-04 19:40:30 +01:00
Bruno Fonseca
476cf694ee THRIFT-4010 Q.fcall messing up with *this* pointer inside called function
Client: js
Patch: Bruno Fonseca

This closes #1143
2016-12-28 00:55:04 +01:00
Palmer Cox
366e89ead7 THRIFT-4012 Python Twisted implementation uses implements, not compatible with Py3
Client: Python
Patch: Palmer Cox <palmer@fiscalnote.com>

This closes #1144

Zope implements doesn't work with Python 3; @implementer does. Replace uses of implements with @implementer since the former does not work with Python 3, while the latter works with both Python 2 and 3.
2016-12-22 18:27:27 +01:00
BCG
7ab125a253 THRIFT-3301 Java generated code uses imports that can lead to class name collisions with IDL defined types
Client: Java
Patch: Benjamin Gould

This closes #1120
2016-12-03 01:00:52 +01:00
Max
74c99ba38b THRIFT-3954 Enable the usage of structs called "Object" in Java
Client: Java
Patch: Maximilian Hess <mail@ne0h.de>

This closes #1119
2016-10-31 18:53:02 +01:00
Nobuaki Sukegawa
59cb6661bc THRIFT-3949 missing make dist entry for compiler/cpp/test
This closes #1115
2016-10-19 22:53:32 +09:00
Jens Geyer
015fe5272c THRIFT-3946 Java 1.5 compatibility broken for binary fields (java5 option)
Client: Java
Patch: Philip Hamer
2016-10-17 23:00:11 +02:00
jfarrell
3fa1940486 THRIFT-3546: NodeJS code should not be namespaced
Client: js
Patch: Benjamin Gould

Adds a fix for this that eliminates the namespace object heirarchy in node.js generated code,
and adds a compiler flag that can be used for backwards compatibility if necessary.

This closes #1111
2016-10-12 12:17:29 -04:00
Dustin Pho
d6bcb265bb THRIFT-3868 Java struct equals should do identity check before field comparison
Client: Java, JavaME
Patch: Dustin Pho <dpho@vt.edu>

This closes #1106
2016-10-07 19:03:40 +02:00
BCG
548403eeab THRIFT-2527 Apache Thrift IDL Compiler code generated for Node.js should be jshint clean
Clieht: NodeJS
Patch: BCG <bgould@users.noreply.github.com>

This closes #1112
2016-10-07 18:57:29 +02:00
Charles Hake
b413703eef THRIFT-3900 Add Python SSL flags
This closes #1077
2016-10-03 00:57:41 +09:00
Nobuaki Sukegawa
d8c6a84866 THRIFT-3940 Visual Studio project file for compiler is broken 2016-10-03 00:57:41 +09:00
James E. King, III
4d39ac5240 THRIFT-3936: fix compile error on VS2013 and earlier from changes introduced during 0.10.0 development (snprintf)
This closes #1099
2016-10-01 23:39:46 +09:00
Robert Lu
346e231495 THRIFT-3929 php namespace remove tail "\\"
This closes #1089
2016-09-26 01:42:03 +09:00
dtmuller
052abc39c6 THRIFT-2835 Add possibility to distribute generators separately from thrift core, and load them dynamically
Deploy headers needed to build plugins

Restructure source tree to match lib and to make sure headers are
deployed to INCLUDE_DIR/thrift.

This closes #368 and closes #1039
2016-09-26 01:42:02 +09:00
Nobuaki Sukegawa
11da87e6f3 THRIFT-2835 Add possibility to distribute generators separately from thrift core, and load them dynamically
Client: Compiler
Patch: Nobuaki Sukegawa, rebased by dtmuller

Also fixed by dtmuller:
* Add plugin namespace for erlang language binding
* Fix unit test test_const_value
* Don't clear type cache with every t_program conversion
* Type "wb" may not be supported by popen on non-Windows platforms
* Fix constness of AST type signatures
2016-09-26 01:42:01 +09:00
fduch
7b0cb9a63a THRIFT-3046: Allow PSR4 class loading for generated classes (PHP) 2016-09-03 15:57:47 +09:00
Mark Erickson
aa4312ef5f THRIFT-3905 Initialize bool, int, and double properties
Client: Dart
Patch: Mark Erickson <merickson@apache.org>

This closes #1068
2016-08-31 15:30:35 -05:00
Jens Geyer
2007783e87 THRIFT-3893 Command injection in format_go_output
Client: Go
Patch: Jens Geyer
2016-08-10 09:33:48 +02:00
Zach Howe
0e9fed1e12 THRIFT-3750 Check isSet in copyWithZone
Client: Cocoa
Patch: Zach Howe <zach@zachhowe.com>

This closes #958
2016-06-16 22:15:12 +02:00
Steve Cohen
7ea4a87fc5 THRIFT-3834 Erlang namespacing and exception metadata
Client: Erlang
Patch: Steve Cohen <steve@pinterest.com>

This closes #1027
2016-06-14 21:57:24 +02:00
Jens Geyer
7407e2e2f3 Revert "THRIFT-3834 Erlang namespacing and exception metadata"
This reverts commit c8deed8cba.
2016-06-07 21:42:09 +02:00
Steve Cohen
c8deed8cba THRIFT-3834 Erlang namespacing and exception metadata
Client: Erlang
Patch: Steve Cohen
2016-06-06 23:10:10 +02:00
Jens Geyer
cee82ae3c7 Revert "THRIFT-3834 Erlang namespacing and exception metadata"
This reverts commit 8e2320339f.
2016-06-06 23:10:01 +02:00
Mark Erickson
1fa95f53bb THRIFT-3842 Dart generates incorrect code for a const struct
Client: Dart
Patch: Mark Erickson <merickson@apache.org>

This closes #1019
2016-05-25 21:23:51 -05:00
Steve Cohen
8e2320339f THRIFT-3834 Erlang namespacing and exception metadata
Client: Erlang
Patch: Steve Cohen
2016-05-20 20:06:53 +02:00
Jens Geyer
6ee1a0bd26 THRIFT-3533 Can not send nil pointer as service method argument
Client: Go
Patch: Chris Bannister
2016-05-04 22:57:53 +02:00
BCG
ea0da97d44 THRIFT-3803 - Remove file attribute from include elements in XML generator
Client: XML/XSD
Patch: Benjamin Gould <bgould@users.noreply.github.com>

This closes #996
2016-04-29 23:29:29 +02:00
Stig Bakken
ad3714ac3d THRIFT-3806 Swift generator does not handle self-referring structs
Client: Swift
Patch: Stig Bakken <stig@zedge.net>

This closes #997
2016-04-29 23:29:28 +02:00
Stig Bakken
b749c2603e THRIFT-3807 Swift compiler does not escape reserved words
Client: Swift
Patch: Stig Bakken <stig@zedge.net>

This closes #998
2016-04-29 23:29:27 +02:00
Kyle Johnson
f5972c9682 THRIFT-3797 Generated Delphi processor shouldn't error out on timed out exceptions
Client: Delphi
Patch: Kyle Johnson

This closes #994
2016-04-29 23:29:23 +02:00
Jens Geyer
80542987f9 THRIFT-3795 Generated hashValue method in Swift will overflow
Client: Swift
Patch: Håkon Hitland
2016-04-22 21:32:35 +02:00
Jens Geyer
e0e3240d64 THRIFT-3794 Split Delphi application, protocol and transport exception subtypes into separate exceptions
Client: Delphi
Patch: Kyle Johnson
2016-04-21 22:58:53 +02:00
Kevin Wooten
4b7abedb04 THRIFT-3559 Fix awkward extra semi-colons with Cocoa container literals
Client: Cocoa
Patch: Kevin Wooten

This closes #797
2016-04-16 23:54:04 +02:00
creker
ca714c4397 THRIFT-3467 Go Maps for Thrift Sets Should Have Values of Type struct{}
Client: Go
Patch: artem antonenko <sam901@yandex.ru>

This closes #976
2016-04-06 22:53:25 +02:00
guo
717334816d THRIFT-3778 go client can not pass method parameter to server of other language
Client: Go
Patch: guo <ggndnn@163.com>

This closes #978
2016-04-06 00:59:00 +02:00
creker
9b39e1686b THRIFT-3776 Go code from multiple thrift files with the same namespace
Client: Go
Patch: artem antonenko <sam901@yandex.ru>

This closes #974
2016-04-06 00:58:59 +02:00
Jens Geyer
06340a4664 THRIFT-3751 Compiler allows field ids that are too large for generated code
Client: Compiler (General)
Patch: Jens Geyer

This closes #964
2016-03-25 02:28:24 +02:00
Jens Geyer
1043d71c2e THRIFT-3759 required fields that are nil are silently ignored on write
Client: Delphi
Patch: Jens Geyer
2016-03-25 00:41:29 +02:00
Nobuaki Sukegawa
e831490db9 follow-up: THRIFT-640 Fix indent in generated code 2016-03-19 01:25:10 +09:00
Daniel Wolf
0d12de3b27 THRIFT-640 Support deprecation 2016-03-19 00:49:35 +09:00
Nobuaki Sukegawa
400ae6e76e THRIFT-3449 TBaseAsyncProcessor fb.responseReady() never called for oneway functions 2016-03-18 23:53:41 +09:00
Nobuaki Sukegawa
a8765276d8 THRIFT-3680 Java async processor fails to notify errors to clients
This closes #903
2016-03-18 22:35:39 +09:00
John Sirois
bd964c7f34 THRIFT-3112 [Java] AsyncMethodCallback should be typed in generated AsyncIface
The parametrization brings the existing actual parametrization with
client call implementation objects to the fore and so this change
also fixes that parametrization to be a simple parametrization over
the return type as is done in the server-side AsyncProcessor code.

NB: This is a breaking change in both generated code and the client
libs.

This closes #840
2016-03-18 22:33:38 +09:00
Jens Geyer
55499b8802 THRIFT-3705 Go map has incorrect types when used with forward-defined types
Client: Go
Patch: Jens Geyer

This closes #951
2016-03-17 09:50:59 +02:00
Mark Erickson
8c8ae96eb8 THRIFT-3719: Dart generator should use lowerCamelCase for service names
Client: Dart
Patch: Mark Erickson

This closes #932
2016-03-08 13:25:30 -06:00
Mark Erickson
aef81d632f THRIFT-3710 Dart generator does not camel case Constants class names
Client: Dart

This closes #922
2016-03-07 11:01:34 -06:00
Jens Geyer
775671aea4 THRIFT-3709 Comment syntax can produce broken code
Client: Compiler(general)
Patch: Jens Geyer
2016-03-07 00:19:21 +01:00
Jens Geyer
35b4465ab7 THRIFT-3664 Remove md5.c
Client: Compiler (general)
Patch: Jens Geyer
2016-03-06 14:59:35 +01:00
Nobuaki Sukegawa
5fb1fda25a THRIFT-3708 NameError: global name 'TProtocol' is not defined
This closes #920
2016-03-06 09:45:48 +09:00
Mark Erickson
b52d03d7a0 THRIFT-3697 Dart generator does not name imports
Client: Dart
Patch: Mark Erickson
2016-02-29 13:24:16 -06:00
Nobuaki Sukegawa
d479e23a1d THRIFT-3691 Run flake8 Python style check on Travis-CI
Client: Build (Python)
Patch: Nobuaki Sukegawa

This closes #907
2016-02-28 12:05:14 +09:00
Nobuaki Sukegawa
3b4a93bba1 THRIFT-3664 Remove md5.c
Client: Compiler
Patch: Nobuaki Sukegawa

This closes #891
2016-02-22 23:27:12 +09:00
Jens Geyer
ea2bd9cb08 THRIFT-3656 incorrect serialization of optionals
Client: Dart
Patch: Jens Geyer
2016-02-21 15:37:26 +01:00
Jens Geyer
517aa15791 THRIFT-3652 incorrect serialization of optionals
Client: AS3
Patch: Jens Geyer
2016-02-21 15:37:25 +01:00
Jens Geyer
a2e74465d4 THRIFT-3654 incorrect serialization of optionals
Client: Haxe
Patch: Jens Geyer
2016-02-21 15:37:25 +01:00
Jens Geyer
b72bb94a82 THRIFT-3650 incorrect union serialization
Client: Compiler (general)
Patch: Jens Geyer

This closes #881
2016-02-21 15:37:11 +01:00
Nobuaki Sukegawa
8b411a0c8f THRIFT-3632 c_glib testserialization fails with glib assertion
Client: c_glib
Patch: Nobuaki Sukegawa

This closes #865
2016-02-14 22:47:19 +09:00
Roshan George
949e242ec8 THRIFT-2877 Generate hashCode using primitives and static utility methods
Client: Java
Author: Roshan George <roshan@arjie.com>

The TBaseHelper.hashCode methods are the Java 8 implementations of hashCode for
those types.

This closes #448
2016-02-14 22:47:19 +09:00
Jens Geyer
d4722d9c48 THRIFT-3629 Parser sets exitcode on errors, but the generator does not
Client: Compiler (general)
Patch: Jens Geyer

This closes #861
2016-02-14 13:50:07 +01:00
Jens Geyer
4733c4c535 THRIFT-3605 Have the compiler complain about invalid arguments and options
Client: Compiler (general)
Patch: Jens Geyer

This closes #862
2016-02-14 11:10:42 +01:00
Nobuaki Sukegawa
6525f6ae87 THRIFT-3612 Add Python C extension for compact protocol
Client: Python
Patch: Nobuaki Sukegawa

This closes #844
2016-02-13 23:12:34 +09:00
Stig Bakken
41e8cbf686 THRIFT-3617 cmake: include gv and xml generators in build
Client: Build (Compiler)
Patch: Stig Bakken

This closes #851
2016-02-13 23:12:34 +09:00
Nobuaki Sukegawa
4708409c2d THRIFT-3601 Better conformance to PEP8 for generated code
This closes #837
2016-02-05 20:48:07 +09:00
Nobuaki Sukegawa
1f647f01c4 THRIFT-3584 boolean false value cannot be transferred
Return value fix and test.
2016-02-04 22:20:00 +09:00
WangYaofu
cfebe7e2c6 THRIFT-3584 Lua: boolean false value cannot be transferred
This closes #826
2016-02-04 22:20:00 +09:00
Mark Erickson
194959917c THRIFT-3589 Pass references to field names in constructor through get_field_name
This closes #825
2016-01-31 12:11:17 +01:00
Roshan George
a9346a308f THRIFT-3377 Deep copy is actually shallow when using typedef members
Client: Java
Patch: Roshan George <roshan@arjie.com>

This closes #823
2016-01-28 23:05:06 +01:00
Jens Geyer
c1fda249f8 THRIFT-3582 Erlang libraries should have service metadata
Client: Erlang
Patch: Steve Cohen <steve@pinterest.com>
2016-01-28 23:05:05 +01:00
Jens Geyer
108fab8242 THRIFT-3501 Forward slash in comment causes compiler error
Client: Compiler (general)
Patch: Jens Geyer
2016-01-28 23:03:24 +01:00
Jens Geyer
41e4847786 THRIFT-3575 Go compiler tries to use unexported library methods when using read_write_private
Client: Go
Patch: Chris Bannister
2016-01-24 12:25:00 +01:00
Stig Bakken
aff06ed3fa THRIFT-3574 Cocoa generator makes uncompilable imports
Client: Cocoa
Patch: Stig Bakken <stig@zedge.net>

This closes #812
2016-01-22 22:26:52 +01:00
Mark Erickson
217a44b9dc THRIFT-3535 Dart generator argument to produce a file structure usable in parent library
Client: Dart
Patch: Mark Erickson <mark.erickson@workiva.com>

This closes #789
2016-01-19 22:35:40 +01:00
Simon South
420ee1e7f8 THRIFT-3552 c_glib: Fix memory leak in processor
- t_c_glib_generator.cc: Free method-name string once matched within a
  generated dispatch_call implementation.
- thrift_dispatch_processor.c: Free method-name string in default
  dispatch_call implementation.
2016-01-16 12:45:19 +01:00
Jens Geyer
b815e3786f THRIFT-3554 Constant decls may lead to "Error: internal error: prepare_member_name_mapping() already active for different struct"
Client: C#
Patch: Jens Geyer
2016-01-14 23:45:28 +01:00
Jens Geyer
9335167280 THRIFT-3537 Remove the (now obsolete) csharp:asyncctp flag
Client: C#
Patch: Jens Geyer
2016-01-14 22:39:30 +01:00
Jens Geyer
ba01d6b2c1 THRIFT-3554 Constant decls may lead to "Error: internal error: prepare_member_name_mapping() already active for different struct"
Client: C#
Patch: Jens Geyer
2016-01-14 22:39:28 +01:00
Adam Connelly
0c0649de7e THRIFT-3510 Add HttpTaskAsyncHandler implementation
Client: C#
Author: Adam Connelly <adam.rpconnelly@gmail.com>

This closes #762
2016-01-14 20:26:14 +01:00
Christopher Rogers
0bd810af87 THRIFT-3545 Cocoa: Container type literals do not compile
Client: Cocoa
Patch: Christopher Rogers <christopher.rogers@linecorp.com>

This closes #790
2016-01-14 19:23:48 +01:00
Nobuaki Sukegawa
7b545b5720 THRIFT-3532 Add configurable string and container read size limit to Python protocols
This closes #787
2016-01-13 20:25:23 +09:00
Nobuaki Sukegawa
a3b88a012e THRIFT-3503 Enable py:utf8string by default
This closes #779
2016-01-11 11:41:14 +09:00
Nobuaki Sukegawa
03565bf467 THRIFT-3526 Code generated by py:utf8strings does not work for Python3
This closes #776
2016-01-11 11:34:22 +09:00
Nobuaki Sukegawa
1b4ebc393d THRIFT-3528 Fix warnings in thrift.ll
This closes #778
2016-01-11 11:34:20 +09:00
BCG
de0b4b5543 THRIFT-3523 XML Generator
Client: XML
Patch: Benjamin Gould, with minor modifications by Jens Geyer

This closes #774
2016-01-10 11:54:04 +01:00
Jens Geyer
f6521c64f4 THRIFT-3314 Dots in file names of includes causes dots in javascript variable names
Client: Javascript
Patch: Kapil Joshi (based on the equivalent C# version)
2016-01-09 00:43:40 +01:00
Eric Klaus
4fcc74478f THRIFT-3499 Add package_prefix to python generator
Client: Python
Patch: Eric Klaus <eric.klaus@workiva.com>

This closes #755
2016-01-09 00:21:35 +01:00
Nobuaki Sukegawa
4733db4e15 THRIFT-3519 fastbinary does not work with -gen py:utf8strings
Client:
Patch: Nobuaki Sukegawa

This closes #769
2016-01-06 04:35:12 +09:00
BCG
2aaae8a604 THRIFT-3486 - Java generated getFieldValue is incompatible with setFieldValue for binary values
Client: Java
Patch: BCG

This closes #743
2016-01-03 02:55:16 +09:00
Simon South
bf8f7b425e THRIFT-3383 i64 related warnings
This closes #764
2016-01-03 02:55:03 +09:00
Nobuaki Sukegawa
b78d781b2e THRIFT-3438 Enable py:new_style by default
Client: Python
Patch: Nobuaki Sukegawa

This closes #759
2016-01-02 22:54:16 +09:00
Nobuaki Sukegawa
7b8946941e THRIFT-3504 Fix FastbinaryTest.py
Client: Python
Patch: Nobuaki Sukegawa

This closes #757
2016-01-02 22:54:16 +09:00
Sebastian Zenker
39e505c150 THRIFT-3496 C++: Cob style client fails when sending a consecutive request
This closes #752
2015-12-24 02:11:17 +09:00
Nobuaki Sukegawa
e68ccc23be THRIFT-3482 Haskell JSON protocol does not encode binary field as Base64 2015-12-13 23:48:22 +09:00
Jens Geyer
eb5f117452 THRIFT-3489 warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
Client: Compiler(general)
Patch: Jens Geyer
2015-12-11 21:29:38 +01:00
Jens Geyer
d0e444c9d9 THRIFT-3488 warning: unused variable 'program'
Client: Go
Patch: Jens Geyer
2015-12-11 21:29:37 +01:00
Jens Geyer
52de5cafbd THRIFT-3477 Parser fails on enum item that starts with 'E' letter and continues with number
Client: Compiler (general)
Patch: Jens Geyer

Fixes the issue with negative doubles. The "-" was recognized as valid st_identifier, which is only a leftover from THRIFT-3416 that is no longer used at all.
2015-12-08 23:03:17 +01:00
Jens Geyer
5eed3a161f THRIFT-3477 Parser fails on enum item that starts with 'E' letter and continues with number
Client: Compiler (general)
Patch: Jens Geyer
2015-12-08 21:05:52 +01:00
Nobuaki Sukegawa
ba3fe86b0a THRIFT-3464 Fix several defects in c_glib code generator
Client: c_glib compiler
Patch: Nobuaki Sukegawa

This closes #724
2015-12-06 10:11:16 +09:00
Mark Erickson
f08771ccea THRIFT-3471 Dart generator does not handle uppercase argument names
Client: Dart
Patch: Mark Erickson <mark.erickson@workiva.com>

This closes #729
2015-12-04 21:31:04 +01:00
Nobuaki Sukegawa
362a5eda21 THRIFT-3455 struct write method's return value is incorrect
Client: c_glib Compiler
Patch: Nobuaki Sukegawa
2015-12-04 00:38:33 +09:00
Jan Brauer
70e6c29e3a THRIFT-1840 Thrift Generated Code Causes Global Variable Leaksk
Client: Node.js
Patch: Jan Brauer <jan@jimdo.com> & Tim Sebastian <tim.sebastian@gmail.com>

This closes #707
2015-12-04 00:37:31 +09:00
jriskin
bc3829e8fd THRIFT-3462 Cocoa generates Incorrect #import header names
Client: Cocoa
Patch: J. Riskin

This closes #722
2015-12-02 21:46:34 +01:00
Jens Geyer
3aa617a483 THRIFT-3413 Thrift code generation bug in Go when extending service
Client: Go
Patch: Jens Geyer
2015-12-02 21:10:13 +01:00
Nobuaki Sukegawa
73fae0fbb7 Revert "THRIFT-3443 Thrift include can generate uncompilable code"
This reverts commit ef3cf819e1.

Also disables tutorial build for Go on Travis to avoid failure caused
by this revert.
2015-12-02 01:22:12 +09:00
Jens Geyer
ad6fd1b6d2 THRIFT-3339 Support for database/sql
Client: Go
Patch: Adam Beberg
2015-11-30 21:40:01 +01:00
Mark Erickson
b0526d5243 THRIFT-3448 Add a Dart generator argument for overriding the thrift library dependency in generated pubspec.yaml files. 2015-11-28 00:58:31 +01:00
Nobuaki Sukegawa
e841b3dac6 THRIFT-162 Thrift structures are unhashable, preventing them from being used as set elements
Client: Python
Patch: David Reiss, Nobuaki Sukegawa

This closes #714
2015-11-28 00:08:07 +01:00
Nobuaki Sukegawa
ef3cf819e1 THRIFT-3443 Thrift include can generate uncompilable code
Client: Go Compiler
Patch: Nobuaki Sukegawa

This closes #709
2015-11-27 00:08:41 +09:00
Tom Lee
314fea26fe THRIFT-3431 Avoid an unnecessary HashMap lookup
The "schemes" lookup that occurs on every read/write can add up
under high throughput with lots of small messages.

This closes #704
2015-11-22 20:52:40 +01:00
Mark Erickson
8d8d6573f7 THRIFT-3434 Dart generator produces empty name in pubspec.yaml for includes w/o namespace
Client: Dart
Patch: Mark Erickson <mark.erickson@workiva.com>

This closes #706
2015-11-20 21:20:37 +01:00
Jens Geyer
341390c19a THRIFT-3388 hash doesn't work on set/list
Client: Python
Patch: Jens Geyer

This essentially reverts commit 790a3881b2 from THRIFT-2621
2015-11-17 22:14:40 +01:00
Nobuaki Sukegawa
bc7e480d0f THRIFT-3350 Python JSON protocol does not encode binary as Base64
Client: Python
Patch: Nobuaki Sukegawa

This closes #697
2015-11-15 14:00:18 +09:00
Jens Geyer
7388037fa1 THRIFT-3416 Retire old "xxx_namespace" declarations from the IDL
Client: Compiler (general)
Patch: Jens Geyer

This closes #700
2015-11-14 18:57:17 +01:00
Jens Geyer
d80d0b2143 THRIFT-3417: "namespace xsd" is not really working
Client: XSD
Patch: Jens Geyer

Fix for error: '>>' should be '> >' within a nested template argument list
2015-11-14 15:26:09 +01:00
Jens Geyer
eeb51962fa THRIFT-3426 Align autogen comment in XSD
Client: XSD
Patch: Jens Geyer
2015-11-14 14:28:10 +01:00
BCG
cc193c1bec THRIFT-3417: "namespace xsd" is not really working
Client: XSD
Patch: Benjamin Gould

This closes #691
2015-11-14 14:28:09 +01:00
Jens Geyer
86284da849 THRIFT-3413 Thrift code generation bug in Go when extending service
Client: Go
Patch: Jens Geyer
2015-11-11 01:33:39 +01:00
Max Spencer
c04fb0069e THRIFT-2974 fix optional writeToParcel
Client: Java
Patch: Max Spencer

This closes #687
2015-11-11 00:32:55 +09:00
Laurent Goujon
11c3569720 THRIFT-3199 Uses StructMetaData for exception fieldvalue
Client: Compiler(Java, javame, as3)
Patch: Laurent Goujon

This closes #526
2015-11-08 23:59:40 +09:00
Nobuaki Sukegawa
760511f59b THRIFT-1857 Python 3 Support
Client: Python
Patch: Thomas Bartelmess, Eevee (Alex Munroe), helgridly, Christian Verkerk, Jeroen Vlek, Nobuaki Sukegawa

This closes #213 and closes #680
2015-11-06 21:24:16 +09:00
Konrad Grochowski
7f4be5f188 some 'some make style' suggestions applied to C++ files 2015-11-05 20:23:11 +01:00
Konrad Grochowski
673c94137a THRIFT-3382 - C++: TBase class for generated structs added
Client: C++
Patch: Adam Beberg <beberg@sentient.ai>

TBase.h is now part of C++ Thrift library and TBase
is used as base class for all structs generated from
user defined structs (when not generating in template mode)

This closes #653
2015-11-05 20:13:05 +01:00
Andrew Bloomgarden
f0f607ffac THRIFT-3408: correct emitted JSON types
This closes #679
2015-11-04 12:32:44 +01:00
Stig Bakken
d6ca81b2cc PHP Compiler: always cast scalar types in jsonSerialize() 2015-10-29 23:01:37 +02:00
Kevin Wooten
867fafffa5 THRIFT-3401 Nested collections emit Objective-C code that cannot compile
Client: Cocoa
Patch: Kevin Wooten <kevin@wooten.com>

This closes #665
2015-10-29 22:51:33 +02:00
Jens Geyer
6748993dcb THRIFT-3394 compiler generates uncompilable code
Client: Haskell
Patch: Tom Lippincott & Jens Geyer

Modified version of Toms patch
2015-10-27 02:23:09 +02:00
Aleksei Shevchenko
bc464c4ce8 Cocoa compiler: fixed incorrect boxing of enums inside map. #THRIFT-3395 2015-10-25 16:55:58 +02:00
Jens Geyer
40c28d3310 THRIFT-3393 Introducing i8 to provide consistent set of Thrift integers
Client: Compiler (general)
Patch: Jens Geyer <jensg@apache.org>

This closes #656
2015-10-20 23:17:38 +02:00
Jens Geyer
86da51d2ae THRIFT-3339 Support for database/sql
Client: Go
Patch: Adam Beberg <beberg@sentient.ai>

Contributed by Sentient Technologies - http://www.sentient.ai/

This closes #623
2015-10-14 14:34:03 +02:00
Jens Geyer
673c44bc11 Fix for misc. codegen issues with THRIFT-2905
Client: Cocoa
Patch: Kevin Wooten <kevin@wooten.com>

This closes #652
2015-10-13 23:58:50 +02:00
Andrew Audibert
2d3eff5d38 THRIFT-2794 Suppress "unused" warnings in autogenerated Java files Client: Java
Client: java
This closes #649
2015-10-13 23:27:00 +02:00
Nobuaki Sukegawa
30f465db92 THRIFT-3378 c_glib service does not handle negative Thrift byte values correctly
This closes #644
2015-10-11 00:40:37 +02:00
Jens Geyer
56e5b9b01b THRIFT-2905 Cocoa compiler should have option to produce "modern" Objective-C
Client: Cocoa (ObjectiveC & Swift)
Author: Kevin Wooten <kevin@wooten.com>

This closes #539
2015-10-09 22:01:55 +02:00
Jens Geyer
f124b55e6d THRIFT-3372 Add dart generator to Visual Studio project
Client: Dart
Patch: Jens Geyer
2015-10-08 22:42:50 +02:00
Mark Erickson
932c4700c6 THRIFT-3299 Create an Apache Thrift language binding for Dart (dartlang.org).
Client: Dart
Patch: Mark Erickson <mark.erickson@workiva.com>

This closes #608
2015-10-03 01:43:59 +02:00
Jens Geyer
178b813acd THRIFT-3361 Improve C# library
Client: C#
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>

This closes #630
2015-09-30 23:16:45 +02:00
Konrad Grochowski
ce636dd65c THRIFT-3317: C++ - generated code will properly reference global apache namespace
Client: C++
Patch: Carrey Zhan

apache::xxxxx --> ::apache::xxxxx
2015-09-25 21:11:55 +02:00
Jens Geyer
0621e1fc94 THRIFT-3354 Fix word-extraction substr bug in initialism code
Client: Go
Author: Prashant Varanasi <prashant@uber.com>

This closes #625
2015-09-25 20:54:45 +02:00
Konrad Grochowski
c623197d37 THRIFT-3336: C++ - generated ostream operator<< will be overridable
Client: C++
Patch: James E. King, III <jim.king@simplivity.com>

This closes #626

Generated scructs will have virtual printTo(ostream&) method, used by
inline ostream operator<<.
2015-09-25 20:41:42 +02:00
jfarrell
a1ae93f4be THRIFT-3290: Using from in variable names causes the generated Python code to have errors
Client: py
Patch: Prathik Rajendran

Adds 'from' to the reserved words list for py

This closes #579
2015-09-24 22:58:45 -04:00
Jens Geyer
804504b79a THRIFT-3331 warning: ‘etype’ may be used uninitialized in this function
Client: C_glib
Patch: Simon South
2015-09-23 22:01:06 +02:00
Jens Geyer
8c7b03c2a5 THRIFT-3349 Python server does not handle processor exception
Client: Python
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>

This closes #621
2015-09-23 21:20:57 +02:00
Jens Geyer
293e2f450b THRIFT-3338 Stray underscore in generated go when service name starts with "New"
Client: Go
Patch: Jens Geyer
2015-09-21 23:18:07 +02:00
Jens Geyer
61444d7be5 THRIFT-557 charset problem with file Autogenerated by Thrift
Client: Python
Patch: zhenghuabin <zhenghuabin@bytedance.com>

This closes #601
2015-09-21 22:43:28 +02:00
Jens Geyer
0f17e15255 THRIFT-3051 Go Thrift generator creates bad go code
Client: Go
Patch: Jake Farrell
2015-09-15 21:44:53 +02:00