Commit Graph

3907 Commits

Author SHA1 Message Date
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
Roger Meier
b3c8409c24 THRIFT-2685 c_glib: Include in integration test suite
- client side

Patch: Simon South
2014-09-01 21:53:40 +02:00
Roger Meier
008f42cb38 THRIFT-2684 c_glib: Improvements to map deserialization in generated code
Patch: Simon South
2014-09-01 20:26:01 +02:00
Roger Meier
546209c961 THRIFT-2683 c_glib: Seg fault when deserializing a map with typedef'd keys
Patch: Simon South
2014-09-01 20:23:26 +02:00
Roger Meier
7fa9848b85 THRIFT-2680 c_glib: ThriftFramedTransport fails when peer unexpectedly closes connection
Patch: Simon South
2014-09-01 20:21:33 +02:00
Konrad Grochowski
e1358ce8f4 THRIFT-2687 - C++ Qt lib - fixed struct/class inconsitency between forward decl and definition
Signed-off-by: Roger Meier <roger@apache.org>
2014-09-01 20:08:49 +02:00
kedzie
f9b8f5e641 THRIFT-2670 Android parcelable generator
-add 'android' option to java compiler which will generate Parcelable structures for Android
-cleaned up warnings
2014-08-23 22:27:45 +02:00
Liangliang He
5d6378f61e fix js list<map> support 2014-08-23 22:22:46 +02:00
Pascal Bach
9be413fca4 Add getOrigin() function to TTransport
getOrigin returns the origin of a request, the value depends on the transport used
2014-08-21 14:36:25 +02:00
Roger Meier
9cc7e8696b THRIFT-2655
CPP tests should not use relative path when accessing ssh related files

Update doc/install/debian.md
2014-08-20 14:24:54 +02:00
Roger Meier
e26db2fcf2 THRIFT-847 Test Framework harmonization across all languages
Client: hs
add split dependency to lib, not installed otherwise
2014-08-18 21:19:44 +02:00
Roger Meier
311f7157a2 THRIFT-2571 Simplify cross compilation using CMake
fix CMake build and update README.md
2014-08-17 22:24:30 +02:00
cdwijayarathna
7191bc99fe THRIFT-847 Test Framework harmonization across all languages
THRIFT-847 Test Framework harmonization across all languages
2014-08-17 21:48:21 +02:00