Commit Graph

3819 Commits

Author SHA1 Message Date
Jens Geyer
5aff35f7be THRIFT-2754 erlang lib tests don't clean up after themselves properly
Client: Erlang
Patch: Alisdair Sullivan

This closes #230
2014-10-01 21:06:52 +02:00
Jens Geyer
b898eaa25c THRIFT-2665 Debug statements are unnecessary and should be removed
Client: Python
Patch: Dustin Spicuzza

This closes #189
2014-10-01 03:00:19 +02:00
Randy Abernethy
5057b4cb5a THRIFT-2750: makes targets for get explicit
Client: Java and JavaScript Libs
Patch: Randy Abernethy

This fixes the build.xml for the Java server used to
test JavaScript. Older ants fail when get is used
with a target directory and not an explicit file name.
2014-09-30 17:34:44 -07:00
Randy Abernethy
bd2fce6fa3 THRIFT-2751: repair node oneway bug and symlink issue
Client: Node Lib
Patch: Randy Abernethy

This patch keep npm from creating sym links on npm install.
Sym links fail when writting to some shared volumes.

Also fixes multiplex oneway bug in nodejs
2014-09-30 17:12:27 -07:00
Randy Abernethy
92a1ed0017 THRIFT-2752: update centos installation doc
Client: Docs
Patch: Randy Abernethy

Updates Centos 6.5 installation docs to work again.
2014-09-30 16:16:10 -07:00
Randy Abernethy
775248a2f7 THRIFT-2747: update .gitignore to ignore .vagrant
Client: General
Patch: Randy Abernethy

Vagrant saves vm state in .vagrant directories which
should never be committed.
2014-09-30 15:44:16 -07:00
Randy Abernethy
38f7a56e55 THRIFT-2749: clean up cpp lib for cpp98 build
Client: CPP Lib
Patch: Randy Abernethy

Adds required limits header and reverts use of sizof on
nonstatic members to cpp98 conformance.
2014-09-30 15:37:26 -07:00
Konrad Grochowski
99b9e1d405 THRIFT-2746: compiler/cpp/README.md updated
Client: Build
Patch: Konrad Grochowski

Haskell compiler no longer need to be disabled when building with mingw
2014-10-01 00:14:14 +02:00
Randy Abernethy
ab3f848dec THRIFT-2746: Replace C++11 code in IDL compiler
Client: compiler (haskell and cpp generators)
Patch: Randy Abernethy

This patch replaces various bits of C++11 code in the Apache
Thrift compiler which fail to compile on older versions of
gcc (such as 4.4.7)
2014-09-30 14:09:41 -07:00
Konrad Grochowski
293a40e960 THRIFT-2745: c++ - fixed some unit test compilation on windows
Client: C++-Library
Patch: Sergei Nikulov

unist.h removed
THRIFT_SLEEP_USEC used instead of usleep
ERROR variable renamed to TEST_TOLERANCE

This closes #207
2014-09-30 12:04:02 +02:00
Konrad Grochowski
3a724e37d4 THRIFT-2663: py - per module logger used in python lib
Client: Python-Library
Patch: Dustin Spicuzza

This enables per module log message filtering

This closes #187
2014-09-29 23:55:47 +02:00
Konrad Grochowski
485d71acd1 THRIFT-2664: py - fixed errors on calling oneway functions
Client: Python-Compiler
Patch: Dustin Spicuzza

'recv_' method is resolved later, thus disregarding exceptions send from
oneway methods calls

This closes #188
2014-09-29 23:38:15 +02:00
Konrad Grochowski
03394b54fb THRIFT-2662: py - Fix incorrect indentation when oneway function is used
Client: Python-Compiler
Patch: Dustin Spicuzza

fixes python generator when py:tornado option is enabled

This closes #186
2014-09-29 23:04:30 +02:00
Jens Geyer
eb393ac3cd THRIFT-2701 Update TCompactProtocol.php
Client: PHP
Patch: GitHub-User anjz <anartzn@gmail.com>

This closes #212

Removed `strrev` from `readDouble` and `writeDouble` functions. I found problems reading a double that was generated with the python library.
2014-09-29 22:47:44 +02:00
Roger Meier
25c68f45da THRIFT-2693 Erlang test leaves a lot of generated files
Patch: Roger Meier
2014-09-29 22:14:30 +02:00
Jens Geyer
aa99e0e2b8 THRIFT-2144 Client-side support for Multiplexing Services on any Transport and Protocol
Client: Cocoa
Patch: David Robakowski

This closes #151
This closes #150
2014-09-29 22:11:08 +02:00
Konrad Grochowski
05d64b4e3b THRIFT-2707: rb - support for oneway messages fixed
Client: Ruby Library, Ruby Compiler
Patch: Konrad Grochowski

now oneway method calls will use proper message type

This closes #217
2014-09-29 22:08:58 +02:00
Konrad Grochowski
1ff4a97a45 THRIFT-2716 - removed warnings from some Makefile.ams 2014-09-29 22:05:49 +02:00
Jens Geyer
eb8e5ad87f THRIFT-2654 reduce number of server exceptions
Client: C#
Patch: Craig Peterson

This closes #177
2014-09-29 21:50:15 +02:00
Roger Meier
4606d7db90 THRIFT-976 c_glib tutorial
Patch: Simon South
2014-09-29 21:01:58 +02:00
Roger Meier
15df0767d3 THRIFT-2685 c_glib: Include in integration test suite
Patch: Simon South
2014-09-29 20:50:56 +02:00
Roger Meier
63243c6a29 THRIFT-2709 c_glib: Support server implementation
Patch: Simon South
2014-09-29 20:29:58 +02:00
James Broadhead
51ba56c31b py.twisted: Avoid synchronous exceptions
This is an update of the patch posted to:
https://issues.apache.org/jira/browse/THRIFT-585
and a re-write of 8345772

Patch: Mattias de Zalenski, James Broadhead

Jira: THRIFT-585
2014-09-28 22:39:55 +02:00
Jens Geyer
b360b65d3f THRIFT-2718 Align cmdline help and return codes for Thrift test server/client
Client: Delphi
Patch: Jens Geyer
2014-09-28 01:55:46 +02:00
Jens Geyer
f8a1b7a29a THRIFT-2718 Align cmdline help and return codes for Thrift test server/client
Client: Delphi
Patch: Jens Geyer
2014-09-24 00:26:46 +02:00
Konrad Grochowski
4ab18cef74 THRIFT-2711 - proper build result returned from Travis
Travis will properly mark build as failed
2014-09-22 23:38:29 +02:00
Jens Geyer
be8326d586 THRIFT-2706 D library does not support "oneway" message type
Client: D
Patch: Konrad Grochowski

This closes #220
2014-09-19 20:35:46 +02:00
Jens Geyer
3dcef37686 THRIFT-2714 Graphviz generator is missing from MSVC++ project files
Client: Graphviz
Patch: Jens Geyer
2014-09-17 22:55:56 +02:00
Jens Geyer
a86886e77d THRIFT-2704 - compiler: T_ONEWAY type used for oneway methods instead of T_CALL
Patch: Konrad Grochowski

This closes #216
2014-09-17 22:36:00 +02:00
Jens Geyer
3e8d9272ce THRIFT-2696 Unable to stop socket server while there are idle clients
Client: Delphi
Patch: Jens Geyer & Severian Duchenko
2014-09-17 21:53:55 +02:00
name
b3e5ebe1e4 THRIFT-2513 clean up enum value assignment
Client: Compiler (General)
Patch: Konrad Grochowski

Fixes the failing test with pure_enums. For details, see JIRA ticket.
2014-09-12 11:15:24 +02:00
Jens Geyer
2de7e19899 THRIFT-2702 empty enums lead to invalid code
Client: Delphi
Patch: Jens Geyer
2014-09-12 00:23:53 +02:00
Jens Geyer
86b309cde0 THRIFT-2513 clean up enum value assignment
Client: Compiler (General)
Patch: Jens Geyer
2014-09-12 00:23:51 +02:00
Jens Geyer
089bcd3f8c THRIFT-1040 Can't end typedef lines with a semicolon
Client: Compiler (General)
Patch: Konrad Grochowski
2014-09-11 22:36:41 +02:00
Jens Geyer
684ccab5e7 THRIFT-2696 Unable to stop socket server while there are idle clients
Client: Delphi
Patch: Severian Duchenko & Jens Geyer

The patch contains some additional refactoring, e.g. I consolidated the excessively overloaded CTORs a bit.
2014-09-11 21:14:44 +02:00
Konrad Grochowski
a8eec715d8 THRIFT-2691 - C++ tutorial: printfs removed, generated operator<< used 2014-09-08 23:13:08 +02:00
Jens Geyer
6bbbf1946e THRIFT-2694 Minor glitches in Delphi cross-test code
Client: Delphi
Patch: Jens Geyer
2014-09-07 01:45:56 +02:00
Jens Geyer
1235ee3f2a Fix EnumTest (part 2)
Patch: Konrad Grochowski, as part of his pull request 209
2014-09-06 14:59:51 +02:00
Jens Geyer
4d223c6fee FIX: wrong include path 2014-09-05 22:31:39 +02:00
Jens Geyer
3e8454cc71 updated ignores 2014-09-04 23:40:32 +02:00
Jens Geyer
ae0b22cc29 THRIFT-2513 clean up enum value assignment
Patch: Dave Watson

This closes #88

Summary:
Clean up how enum values are handled if an integer value is not
explicitly specified in the thrift file.

For example, the following used to be a compile error, but
works now:

  enum MyEnum {
	SOMEVALUE
  }
  struct MyStruct {
	1: MyEnum e = SOMEVALUE
  }

This change also cleans up some of the error handling with out-of-range
values.  Previously thrift simply issued a warning for enum values that
didn't fit in an i32, but serialized them as i32 anyway.  Now
out-of-range enum values result in a compile failure.

Test Plan:
Included a new unit test to verify the assignment of enum values.  I
also verified that g++ makes the same enum value assignments when
compiling these enums as C++ code.
2014-09-04 23:40:14 +02:00
Jens Geyer
067779bbda THRIFT-2679 golang generation fails for service names less than 5 characters
Client: Go
Patch: Dustin Spicuzza & Jens Geyer
2014-09-04 22:35:38 +02:00
Roger Meier
0cc6d3c7bd THRIFT-2690
c_glib: Incorrect behaviour when serializing a map with typedef'd keys

Patch: Simon South
2014-09-04 00:24:17 +02:00
Roger Meier
d62473c3b0 THRIFT-1266 generated C code for iterating over nested maps is wrong
Patch: Simon South
2014-09-04 00:16:50 +02:00
Konrad Grochowski
b3f6ea100f THRIFT-2067 C++: all generated objects provide ostream operator<< 2014-09-03 23:41:32 +02:00
Jens Geyer
d0bd17e726 THRIFT-2666 Usage of PYTHONHASHSEED breaks older Python code
Client: Python
Patch: Jens Geyer
2014-09-01 23:05:08 +02:00
Keith Lazuka
e26a19bba0 THRIFT-2676 Avoid 'i386' name collision in generated Cocoa/objc code
This fixes a bug in the cocoa code generator where the variable
used by a for-loop can conflict with a built-in symbol when the
temporary variable counter is equal to 386. The generated variable
name, 'i386', conflicts with a macro built-in to the compiler.

I can reproduce this bug on Xcode 5 as well as Xcode 6. It appears
to only affect iOS projects, not OS X projects.

My fix simply prefixes the generated variable with 'idx' instead of 'i'.

This test code demonstrates the problem, regardless of Thrift codegen.

    int i386 = 42;
    printf("foobar %d\n", i386);

Which results in the following compiler error:

/Users/keith/Desktop/ReservedSymbolTest/ReservedSymbolTest/ViewController.m:22:7: error: expected identifier or '('
  int i386 = 99;
      ^
<built-in>:143:14: note: expanded from here
             ^
1 error generated.
2014-09-01 22:04:36 +02:00
Roger Meier
b191ecc8dc THRIFT-2686 Another extraneous semicolon - TBinaryProtocol.h
Client: cocoa
Patch: Mark Frawley
2014-09-01 22:01:10 +02:00
Roger Meier
db8751b1bc THRIFT-2673 PHP: generated Service_method_result code should not have validators
Patch: Stig Bakken
2014-09-01 21:58:07 +02:00
John Chee
aa42d61d7a THRIFT-2677 haskell library and tutorial: build with network > 2.5 2014-09-01 21:55:04 +02:00