Commit Graph

1486 Commits

Author SHA1 Message Date
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