Commit Graph

4309 Commits

Author SHA1 Message Date
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
ad3a95527c THRIFT-3298: thrift endian converters may conflict with other libraries
Client: cpp
Patch: Xiaoshuang LU

Converts ntohll, htonll to be Thrift prefixed to avoid redefinition by other libraries (ie. zookeeper.h)
2015-09-24 23:27:34 -04: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
jfarrell
27be411ee0 THRIFT-2936:Minor memory leak in SSL
Client: cpp
Patch: James King

Thrift clients that use SSL leak 64 bytes in two chunks. This is because the list of available compression methods is not freed.

This closes #619
2015-09-24 22:26:37 -04:00
Jens Geyer
b121a586b2 THRIFT-3345 Clients blocked indefinitely when a java.lang.Error is thrown
Client: Java
Author: huahang <huahang@users.noreply.github.com>

This closes #618
2015-09-23 23:05:26 +02: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
d629ea0bb2 THRIFT-3347 Improve cross test servers and clients
Client: TestSuite, C++, Perl, NodeJS, c_glib, Haskell, Python
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>

This closes #621
2015-09-23 21:20:38 +02:00
Nobuaki Sukegawa
6823829710 THRIFT-3342 Improve ruby cross test client and server compatibility
This closes #615
2015-09-22 07:48:25 +02:00
Nobuaki Sukegawa
cf63c95c17 THRIFT-3343 Fix haskell README
This closes #616
2015-09-22 07:46:48 +02:00
Jens Geyer
fa2daef14b THRIFT-3341 Add testBool methods
Client: Haxe
Patch: Jens Geyer

This closes #614
2015-09-22 00:29:32 +02:00
Jens Geyer
39ba6b71f5 THRIFT-3341 Add testBool methods
Client: Delphi
Patch: Jens Geyer
2015-09-22 00:23:51 +02:00
Nobuaki Sukegawa
2a640c4ca2 THRIFT-3303 Disable concurrent cabal jobs on Travis to avoid GHC crash
This closes #592
2015-09-21 23:48:09 +02:00
Roger Meier
840f3ef649 THRIFT-3340 Python: enable json tests again
This closed #613
2015-09-21 23:36:27 +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
Nobuaki Sukegawa
a649e7473b THRIFT-3337 Add testBool method to cross tests
This closes #611
2015-09-21 23:07:39 +02:00
Nobuaki Sukegawa
245c347b73 THRIFT-3334 Markdown notation of protocol spec is malformed
This closes #610
2015-09-21 23:06:18 +02:00
Nobuaki Sukegawa
c2993c0edf THRIFT-3332 make dist fails on clean build
This closes #609
2015-09-21 23:03:30 +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
b925739550 THRIFT-3335 Ruby server does not handle processor exception
Client: Ruby
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>

This closes #612
2015-09-21 22:36:45 +02:00
Roger Meier
ff4a8edd50 THRIFT-3326 Tests do not compile under *BSD
Patch: Joao Neves
2015-09-19 20:49:50 +02:00
Roger Meier
6857b7fe90 THRIFT-2918 Race condition in Python TProcessPoolServer test 2015-09-17 09:46:24 +02:00
jfarrell
614a67016d THRIFT-3324 - Update go get command to include all packages
Client: go
Patch: zzmp

Update go documentation
2015-09-15 17:05:41 -04: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
Jens Geyer
ab1bfa9013 THRIFT-3319 CSharp tutorial will not build using the *.sln
Client: C#
Patch: Jens Geyer

This closes #604
2015-09-11 23:49:54 +02:00
Sergei Nikulov
34e0bb64bd THRIFT-2850 CMake for Apache Thrift
fixes for std/boost::thread detection; security test; qt test

This closes #598
2015-09-08 23:22:44 +02:00
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
Jens Geyer
96d80200c5 THRIFT-3295 C# library does not build on Mono 4.0.2.5 or later
Client: C#
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>

This closes #586
2015-09-03 21:14:30 +02:00
Jens Geyer
1f1c206b08 THRIFT-3310 lib/erl/README.md has incorrect formatting
Client: Erlang
Patch: Chris Snow <chsnow123@gmail.com>

This closes #593
2015-09-03 20:53:44 +02:00
Randy Abernethy
b92f636f7b THRIFT-3311:README.md cleanup
Client: docs
Patch: Chris Snow

Github Pull Request:
This closes #594
https://github.com/apache/thrift/pull/594
2015-08-30 10:56:35 -07:00
jfarrell
e2e5e22c11 THRIFT-3308: Fix broken test cases for 0.9.3 release candidate
client: build
Patch: jfarrell

Fix broken test cases, make check now passes with all files in dist
2015-08-25 14:59:40 -04:00
jfarrell
400d02c75f THRIFT-2269: Can deploy libthrift-source.jar to maven center repository
Client: java
Patch: jfarrell

Fix java sources issue being deployed as -src.jar
2015-08-25 01:14:12 -04: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
Randy Abernethy
7860ee727a THRIFT-3300:Reimplement TZlibTransport in Java using streams
Client: Java Lib
Patch: Paul Magrath

This closes #590
commit c01aff7038adb9fa2098c02d0092757834fd4df4
Author: Paul Magrath <paul@swiftkey.com>
Date: 2015-08-17T17:25:24Z
THRIFT-3300 Reimplement TZlibTransport in Java using streams
2015-08-20 23:50:35 -07:00
Nobuaki Sukegawa
2fab3deb09 THRIFT-3296 - Go cross test does not conform to spec 2015-08-17 21:54:23 +10: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
Randy Abernethy
bb98e97fd3 THRIFT-3294: Java ZLib transport fix
Client: Java Lib
Patch: Paul Magrath
2015-08-05 21:02:14 -07: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
Jens Geyer
c6b991fe00 THRIFT-3292 Integrate new Zlib transport for Go into test suite
Client: Go
Patch: Paul Magrath <paul@swiftkey.com>

This closes #580
2015-08-08 00:24:09 +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
38e7155c03 THRIFT-3288 c_glib: Build unit tests without compiler warnings
These changes allow the unit tests for C (GLib) to build without
compiler warnings, even with additional warnings enabled. They
include

- Disabling string-function optimizations when glibc is used, as
  these produce compiler warnings when a string function is used
  within a call to assert ();

- Remove the "LL" suffix (added in C99) from 64-bit integer
  literals;

- Replace C++-style ("//") comments with C-style equivalents;

- Remove unused constant declarations that generated warnings;
  and

- Mark (or remove, from main ()) unused function parameters.
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
db3646faef THRIFT-3288 c_glib: Unit tests: Enable warnings, improve automake-variable use
This change

- Enables the same comprehensive set of warnings ("-Wall -Wextra
  -pedantic") specified for the unit tests for C++ and

- Changes the use of automake variables (e.g. AM_CPPFLAGS) to more
  closely match their intended use, as specified in the automake
  documentation.
2015-08-03 22:10:22 +02:00
Roger Meier
03f3f55109 THRIFT-3286 Apache Ant is a necessary dependency
adding to apt-get command

Patch: Maurya Talisetti

This closes #513
2015-08-03 22:03:36 +02:00
Simon South
89e65def89 THRIFT-3285 c_glib: Library: Build without compiler warnings
These changes allow the C (GLib) library to be built without
warnings from the compiler, even with extra compiler warnings
enabled. The changes involve

- Moving variable declarations to the top of every code block,

- Using unions instead of type-punning to follow strict-aliasing
  rules,

- Replacing variable-length array declarations with arrays
  allocated on the stack (using g_newa and g_alloca),

- Casting void pointers to a suitably sized data type before
  performing arithmetic on them,

- Replacing C++-style ("//") comments with C-style equivalents,
  and

- Removing an errant semicolon and comma.

This closes #576
2015-08-03 19:09:02 +02:00