Commit Graph

1225 Commits

Author SHA1 Message Date
Roger Meier
5f2d34e5ab THRIFT-2229 thrift failed to build on OSX 10.9 GM 2013-11-16 16:43:41 +01:00
Roger Meier
3da1c9025b THRIFT-2260 java: Thrift imposes unneeded dependency on commons-lang3
Patch: Andrew Gaul
2013-11-16 15:37:20 +01:00
Roger Meier
5df24f7afb THRIFT-2172 Java compiler allocates optionals array for every struct with an optional field
Patch: Andrew Gaul
2013-11-13 22:08:06 +01:00
Jens Geyer
b54fbd32cf THRIFT-2193 Java code generator emits spurious semicolon when deep copying binary data
Patch: Andrew Gaul  & Jens Geyer
2013-11-11 23:17:17 +01:00
Jens Geyer
4ccc24f621 THRIFT-2227 Thrift compiler generates spurious warnings with Xlint
Patch: Andrew Gaul
2013-11-11 22:43:45 +01:00
Jens Geyer
13848c6801 THRIFT-2254 Exceptions generated by Go compiler should implement error interface
Patch: Aleksey Pesternikov
2013-11-11 22:06:05 +01:00
Roger Meier
1ee7bb645d THRIFT-1813 java: Add @Generated annotation to generated classes
Patch: Arvind Jayaprakash and Andrew Gaul
2013-11-09 19:41:46 +01:00
Jens Geyer
73250ba96c THRIFT-2247 Go generator doesn't deal well with map keys of type binary
Patch: Tonnerre Lombard & Aleksey Pesternikov
2013-11-05 09:16:11 +01:00
Jens Geyer
0ec155e160 THRIFT-2246 Unset enum value is printed by ToString() - fix for some edge cases
Patch: Jens Geyer
2013-11-05 00:49:10 +01:00
Jens Geyer
088c26b40c THRIFT-2246 Unset enum value is printed by ToString()
Patch: Jens Geyer
2013-11-04 22:40:38 +01:00
Jens Geyer
fca0b8c972 THRIFT-1815 Code generators line buffer output - Go compiler
Patch: Jens Geyer
2013-11-03 23:42:35 +01:00
Jens Geyer
53078be3ee THRIFT-1815 Code generators line buffer output - Go compiler
Patch: Jens Geyer
2013-11-02 20:05:40 +02:00
Ben Craig
22856f3425 Related to THRIFT-2045: Somehow missed "go" MINGW issue that Jens found.
Putting that back and trying again...
Client: cpp compiler, build
Patch: Ben Craig, Jens Geyer
2013-10-11 08:53:51 -05:00
Ben Craig
e957675647 THRIFT-2045: C++ compiler warning and build cleanup (again)
Client: cpp
Patch: Ben Craig
2013-10-11 08:19:16 -05:00
Ben Craig
9f9cd10e81 Revert "THRIFT-2045: C++ compiler warning and build cleanup"
This reverts commit 282e440c6d.

This change had unintended autoconf side effects.
2013-10-09 09:47:48 -05:00
Ben Craig
282e440c6d THRIFT-2045: C++ compiler warning and build cleanup
Client: cpp compiler, go compiler, python compiler, compiler build
Patch: Ben Craig
2013-10-08 16:02:06 -05:00
Jens Geyer
27148dee98 THRIFT-2215 Generated HTML/Graphviz lists referenced enum identifiers as UNKNOWN.
Patch: Jens Geyer
2013-10-04 19:10:16 +02:00
Jens Geyer
0164040804 THRIFT-2195 Delphi: Add event handlers for server and processing events
Patch: Jens Geyer
2013-09-25 21:12:21 +02:00
Jens Geyer
83767a72cd THRIFT-2200: nested structs cause generate_fingerprint() to slow down at excessive CPU load
Patch: Jens Geyer
2013-09-23 22:09:49 +02:00
Ben Craig
836d95f9f0 THRIFT-2201: Ternary operator returns different types (build error for
some compilers)
Client: java compiler, ruby compiler
Patch: Randy Abernathy
2013-09-23 11:53:47 -05:00
Henrique Mendonça
f7be519e08 THRIFT-1772 Serialization does not check types of embedded structures.
Client: python
Patch: Avi Flamholz

clean up references to php only, no functional changes
2013-09-19 12:30:05 +02:00
Jens Geyer
8cd3efe50a THRIFT-1755 Comment parsing bug
Patch: Brian Brooks & Jens Geyer
2013-09-16 22:17:52 +02:00
Jens Geyer
901d555296 THRIFT-2175 Wrong field type set for binary
Patch: Jens Geyer
2013-09-10 21:34:43 +02:00
jfarrell
7096942cfa THRIFT-2178:Thrift generator returns error exit code on --version
Client: compiler
Patch: Nate Rosenblum

Changes exit status of --version call.
2013-09-09 20:33:38 -04:00
henrique
aff2f78b27 THRIFT-2167 nodejs lib throws error if options argument isn't passed
Client: nodejs
Patch: Randy Abernethy and Red Daly

also add examples to test makefile
2013-09-09 12:38:25 +02:00
Jens Geyer
c949514e41 THRIFT-2170 Generated Go code should populate all ReadErrors completely
Patch: Jens Geyer
2013-09-08 00:31:59 +02:00
Jens Geyer
ec8744c4dd THRIFT-2166 Delphi compiler should generate constant class name prefixed with thrift file name (similar to Java and C#)
Patch: Jens Geyer
2013-09-06 21:09:08 +02:00
Jens Geyer
d21fa6e502 THRIFT-2163 Incorrect Delphi code generated for typedef'ed constants
Patch: Jens Geyer
2013-09-06 21:05:46 +02:00
Jens Geyer
718f6eefb6 THRIFT-2162 Missing calls to inherited CTOR at misc. places
Patch: Jens Geyer
2013-09-06 21:02:57 +02:00
Jens Geyer
03d4944e85 THRIFT-2165: Thrift Compiler fails at input files with UTF-8 BOM
Patch: Jens Geyer
2013-09-04 22:34:41 +02:00
henrique
17d42799eb Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/thrift 2013-08-30 22:04:52 +02:00
Ben Craig
fb89bb5fca THRIFT-2155: Adding one liner guide to rename the version.h.in and rename
thrifty.cc.h
Client: cpp
Patch: Karthick Selvaraj
2013-08-30 13:46:05 -05:00
henrique
2fdd916b8b THRIFT-2053 NodeJS: Support for Multiplexing Services
Client: nodejs
Patch: Remo Hertig
2013-08-28 14:03:34 +02:00
Carl Yeksigian
cf1fe74b13 THRIFT-2149:Add an option to disable the generation of default operators
client: cpp
patch: Chris Stylianou
2013-08-26 17:29:11 -04:00
Jens Geyer
12c09f44cb THRIFT-667 Period should not be allowed in identifier names
Patch: Jens Geyer
2013-08-25 14:17:32 +02:00
Jens Geyer
d4a0b27ad0 THRIFT-1351 Compiler does not care about binary strings
Patch: Wade Simmons & Jens Geyer
2013-08-21 23:55:29 +02:00
jfarrell
f7516e13d3 Thrift-1614:Thrift build from svn repo sources fails with automake-1.12
Client: build
Patch: jfarrell

Override am__yacc_c2h to force all generated headers to be .h
2013-08-18 10:53:07 -04:00
jfarrell
92f24b2780 THRIFT-1614: Thrift build from svn repo sources fails with automake-1.12
Client: compiler
Patch: jfarrell

Updates automake version min req to 1.11 and switches header generated
by yacc to .h instead of .hh.
2013-08-17 15:47:13 -04:00
jfarrell
87577ef001 THRIFT-2128: lib GO tests fail with funct ends without a return statement
Client: go
Patch: jfarrell

Fix issue with go tests failing in go1 in the process function.
2013-08-16 09:26:05 -04:00
jfarrell
102c600bbb Thrift-2124: .o, .so, .la, .deps, .libs, gen-* files left tutorials, test and lib/cpp when making DIST
Client: build
Patch: jfarrell

Fixing all the missing files and dist build issues that have been ignored.
2013-08-15 21:20:19 -04:00
Carl Yeksigian
f8e8c59921 THRIFT-2105 Generated code for default values of collections ignores t_field::T_REQUIRED
Client: cpp
Patch: Vladimir Strisovsky
2013-08-13 18:23:03 -04:00
Jens Geyer
09b97c78de THRIFT-2017 Resource Leak in thrift struct under compiler/cpp/src/parse/t_program.h
Patch: kuldeep gupta
2013-08-04 13:39:09 +02:00
Jens Geyer
656a173050 THRIFT-2112 Error in Go generator when using typedefs in map keys
Patch: Emir Habul
2013-08-03 10:22:39 +02:00
Jens Geyer
27a7ce9f12 THRIFT-2107 minor Go generator fixes
Patch: Jens Geyer
2013-07-31 13:20:20 +02:00
Jens Geyer
d1257debcf THRIFT-2106 Fix support for namespaces in GO generator
Patch: Emir Habul
2013-07-31 13:03:26 +02:00
Jens Geyer
7b07fbcba0 THRIFT-2100 typedefs are not correctly referenced when including from other thrift files
Patch: Remo Hertig
2013-07-30 03:08:17 +02:00
Jens Geyer
11430df7ae THRIFT-2102 constants are not referencing to correct type when included from another thrift file
Patch: Remo Hertig
2013-07-26 00:23:00 +02:00
Jens Geyer
a7da48805c THRIFT-2090: Go generator, fix including of other thrift files
Patch: Emir Habul
2013-07-18 00:33:05 +02:00
Roger Meier
ba406d3a02 THRIFT-2089 Compiler ignores duplicate typenames
Patch: Randy Abernethy
2013-07-15 22:41:34 +02:00
Jens Geyer
1075a6f67b THRIFT-2088 Typos in Thrift compiler help text
Patch: Jens Geyer
2013-07-14 13:54:10 +02:00
Carl Yeksigian
049f5f3375 THRIFT-2082 Executing "gmake clean" is broken
Patch: Pavlin Radoslavov
2013-07-05 13:49:15 -04:00
Jens Geyer
b3495ffd20 THRIFT-2065 Not valid constants filename in Java
Patch: Jens Geyer
2013-06-26 20:20:13 +02:00
Jens Geyer
102bca47f7 THRIFT-2032 C# client leaks sockets/handles
Patch: Jens Geyer
2013-06-25 22:21:29 +02:00
Jens Geyer
6ce16d95a4 THRIFT-2049 Go compiler doesn't build on native Windows
Patch: Ben Craig & Jens Geyer
2013-06-21 00:04:45 +02:00
Roger Meier
bb98ed44d7 THRIFT-1458 cpp: use the C++ standard (c++0x or later c++11) to improve code quality and cross platform capability
Signed-off-by: Nate Rosenblum <nater@maginatics.com>
2013-06-20 01:06:22 +02:00
Jens Geyer
f713a75a08 THRIFT-2012 Modernizing Go
Fix for variable ‘field_default_value’ set but not used

Patch: jens Geyer
2013-05-07 11:37:41 +02:00
Jens Geyer
0e87c46c18 THRIFT-2012 Modernizing Go
Patch: Travis Cline
2013-06-18 22:25:07 +02:00
Jens Geyer
70a5762736 THRIFT-2030 Thrift allows for inconsistent use of "oneway"
Patch: Jens Geyer
2013-06-15 03:05:03 +02:00
Jens Geyer
b310ae7816 THRIFT-2015 Thrift exceptions should derive from TException
Patch: Jens Geyer
2013-06-12 21:10:35 +02:00
Roger Meier
03aaf93c53 THRIFT-2010 Generate c_glib code doesn't compile with strict gcc flags
Patch: Miguel Angel Cabrera Moya
2013-06-10 21:24:54 +02:00
Carl Yeksigian
de07408e43 THRIFT-1995: IDL can generate uncompilable ocde
Patch: Carl Yeksigian
2013-06-09 05:28:47 -07:00
Jens Geyer
c08926ae73 THRIFT-1913 skipping unknown fields in java unions
Patch: Hrushikesh Tilak
2013-06-09 14:10:57 +02:00
kamilsalas
d522421d7f Thrift-1775: 2013-06-09 13:47:37 +02:00
Carl Yeksigian
c317852eed THRIFT-2003: Deprecate senum
Patch: Randy Abernethy
2013-06-07 12:31:13 -04:00
Jake Farrell
1b0bc0f421 THRIFT-1996:Constants generation is broken / inconsistent with regular Java generation
Client: as3/javame
Patch: Matthew Rathbone

Constants file missing program_name_ prefix.
2013-06-04 22:46:38 -04:00
Jens Geyer
c2c4d72b90 THRIFT-1993 Factory to create instances from known (generated) interface types with Delphi
Patch: Jens Geyer
2013-06-04 22:06:30 +02:00
Jens Geyer
0ca234f3b6 THRIFT-1944 Deprecate slist
Patch: Randy Abernethy
2013-06-04 22:01:47 +02:00
Jens Geyer
d65def0159 THRIFT-1977: Fix to ensure proper C# class names
Patch: Jens Geyer
2013-06-04 01:19:53 +02:00
Jake Farrell
0049ec72ed Thrift-1402:Generated Y_types.js does not require() X_types.js when an include in the IDL file was used
Client: js
Patch: Patrick Costello

Adds render_includes() to js header.
2013-05-30 23:42:56 -04:00
Jens Geyer
d3c71827f8 THRIFT-1977 C# compiler should generate constant files prefixed with thrift file name
Patch: Deniss Afonin & Jens Geyer
2013-05-28 03:09:04 +02:00
Jens Geyer
a5cce17a8d THRIFT-1958 C#: Use static Object.Equals instead of .Equals() calls in equals
Patch: Carl Yeksigian
2013-05-27 23:55:56 +02:00
Jens Geyer
691a16ac04 THRIFT-1970 [Graphviz] Adds option to render exceptions relationships
Patch: Rodrigo Setti
2013-05-18 11:16:28 +02:00
Henrique Mendonça
cbb979b804 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/thrift 2013-05-16 21:37:32 +02:00
Henrique Mendonça
8ad13a38e8 THRIFT-1907 Compiling namespace and sub-namespace directives for unrecognized generators should only be a warning
Patch: Andrew Cox
2013-05-16 21:26:20 +02:00
Henrique Mendonça
f837f30181 Revert "THRIFT-1907 Compiling namespace and sub-namespace directives for unrecognized generators should only be a warning"
This reverts commit d28d4d5784.
2013-05-16 21:25:18 +02:00
Henrique
d28d4d5784 THRIFT-1907 Compiling namespace and sub-namespace directives for unrecognized generators should only be a warning
Patch: Andrew Cox
2013-05-16 21:22:46 +02:00
Jake Luciani
36af4d3b40 THRIFT-1972 Add async server processors to Java
Patch: Jake Luciani
2013-05-16 12:59:50 -04:00
Jens Geyer
d7b4579272 THRIFT-1965 Adds Graphviz (graph description language) generator
Patch: Rodrigo Setti
2013-05-13 22:11:46 +02:00
Roger Meier
6d7473d0f1 THRIFT-1960 main() declares 22 unused gen bools
Patch: Randy Abernethy
2013-05-06 01:08:36 +02:00
Jake Farrell
0fd47dab1b THRIFT-1956: Switch to Apache Commons Lang 3
Client: java
Patch: Christoffer Sawicki

Updates commons lang from 2.5 to 3.1
2013-05-02 22:51:52 -04:00
Jens Geyer
d708ebb689 THRIFT-1955 Union Type writer generated in C# does not WriteStructBegin
Patch: Carl Yeksigian
2013-05-02 19:29:42 +02:00
Jens Geyer
b706b1a905 THRIFT-1742 Optionally implement hashcode and equals in c#
Patch: Carl Yeksigian
2013-04-29 22:10:10 +02:00
Jens Geyer
47af9f1703 THRIFT-1943 docstrings for enum values are ignored
Patch: Jens Geyer
2013-04-26 22:34:53 +02:00
Jens Geyer
f509df9c96 THRIFT-1930: C# generates unsigned byte for Thrift "byte" type
Patch: Jens Geyer
2013-04-25 20:38:55 +02:00
Jens Geyer
0f8acc5697 THRIFT-1924: Delphi: Inconsistency in serialization of optional fields
Patch: Jens Geyer
2013-04-24 21:53:39 +02:00
jfarrell
bdb19a467a Thrift-1786: C# Union Typing
Client: csharp
Patch: Carl Yeksigian

Union typing patch
2013-04-22 14:41:13 -05:00
Jake Farrell
de262dc77e Thrift-1903: PHP namespaces cause binary protocols to not be used
Client: php
Patch: Tyler Hobbs

Resolves the issue by importing TBinaryProtocolAccelerated and checking if $this->output_ is an instance of that instead of using a static string in TProtocol.
2013-04-19 21:58:33 -04:00
Jens Geyer
1bd9424b47 THRIFT-1933: Delphi generator crashes when a typedef references another typedef from an included file
Patch: Jens Geyer
2013-04-19 20:15:05 +02:00
Jens Geyer
93220328d9 THRIFT-1922: Inconsistency in optional fields between Java/C# and python
Patch: Nate Rosenblum
2013-04-09 22:42:31 +02:00
Jens Geyer
45766049e0 THRIFT-1904 Incorrect code is generated for typedefs which use included types
Patch: Jens Geyer
2013-03-27 20:32:41 +02:00
Jake Farrell
2d26f18a12 Thrift-1806: Python generation always truncates __init__.py files
Client: Python
Patch: Nathaniel Cook

When generating python code the generator correctly creates _init.py file for each directory. If the __init_.py file has contents it is always overwritten. This usually isn't a problem unless using the -out flag, then there is a potential to erase non generated code.
2013-03-25 23:49:37 -04:00
Jake Farrell
3c434ab87d Thrift-1823:Missing parenthesis breaks "IS_..." macro in generated code
Client: c_glib
Patch: Simon South

Fixes missing paren in the c_glib compiler
2013-03-23 23:27:43 -04:00
Jake Farrell
d1fb1807fe Thrift-1859: Generated error c++ code with -out and include_prefix param
Client: cpp
Patch: Jingxu Chen

Updates output directory to no longer include gen-cpp folder when using -out.
2013-03-23 21:35:03 -04:00
Roger Meier
e491d298f0 THRIFT-1896 cocoa: Add TBase protocol for Cocoa
Patch: Kevin Li
2013-03-22 22:18:45 +01:00
Roger Meier
5505465ffa THRIFT-1897 cocoa: Support validation of required fields
Patch: Kevin Li
2013-03-22 22:11:01 +01:00
Roger Meier
948a2d4fb8 THRIFT-1855 deep-copy for collections of primitives should use copy-constructor
Patch: Vitali Lovich
2013-03-22 19:01:25 +01:00
Jens Geyer
7af5868e57 THRIFT-1895 Delphi: reserved variable name "result" not detected properly
Patch: Jens Geyer
2013-03-21 19:59:05 +02:00
Jens Geyer
19251ad24a THRIFT-1876 Use enum names instead of casted integers in assignments
Patch: Jens Geyer
2013-03-10 22:51:14 +02:00
Jens Geyer
b3fb3e6092 THRIFT-1318 Incorrect syntax for struct with enum property and default value when value is negative
Patch: Jens Geyer, Thunder Stumpges
2013-03-10 19:07:52 +02:00
Jens Geyer
b19c339460 removed unused variable 2013-03-08 09:03:01 +01:00
Chris Piro
20c81ad74c THRIFT-1704: Tornado support (Python) 2013-03-07 11:32:48 -05:00
Chris Piro
92e3860cfb THRIFT-1614: handle automake >= 1.12 yacc output name (thrifty.hh) 2013-03-07 11:24:51 -05:00
Jake Farrell
5b0c590968 THRIFT-1856: different comments generated
Patch: Jake Farrell

Fix different comments being generated on OSX vs Linux/Windows.
2013-02-17 19:31:04 -05:00
Jake Farrell
1af57289f2 THRIFT-1856: different comments generated
Patch: Jake Farrell

Fix different comments being generated on OSX vs Linux/Windows
2013-02-17 14:44:46 -05:00
Jens Geyer
3a67c2f834 THRIFT-1603 Thrift IDL allows for multiple exceptions, args or struct member names to be the same
Patch: Kamil Sałaś
2013-02-03 22:30:41 +01:00
Roger Meier
814d4c7fb9 THRIFT-1843 Get rid of annoying comma in python function signatures
Patch: Volodymyr Krestiannykov
2013-01-24 23:16:54 +01:00
Roger Meier
d34bea0c04 THRIFT-1837 Deploy and use cxxfunctional.h in cpp code generated in cob_style mode
Patch: Nate Rosenblum
2013-01-22 21:36:42 +01:00
Jens Geyer
a1e36f6ee5 THRIFT-1832 C# async generator assumes all methods have arguments
Patch: Kevin Radloff
2013-01-17 22:46:57 +01:00
Roger Meier
d536424633 THRIFT-1831 Bug in list deserializer
Patch: Satheesh Velmurugan
2013-01-16 22:46:10 +01:00
Roger Meier
e3da768367 THRIFT-1826 update c_glib source header paths
Patch: Simon South
2013-01-11 11:41:53 +01:00
Jens Geyer
945537c1fc THRIFT-1815 Code generators line buffer output
Patch: Andrew Gaul
2013-01-04 19:33:29 +01:00
Roger Meier
6df4f3bbc7 THRIFT-1779 Missing process_XXXX method in generated TProcessor implementation for all 'oneway' service functions
Patch: Luis Laugga
2012-12-27 02:32:44 +01:00
Jens Geyer
63e3c63078 THRIFT-1800 Documentation text not always escaped correctly when rendered to HTML
Patch: Jens Geyer
2012-12-24 10:32:58 +01:00
Jens Geyer
c880b44c5d THRIFT-1799 Option to generate HTML in "standalone mode"
Patch: Jens Geyer
2012-12-21 23:07:29 +01:00
Jens Geyer
5bcf32bfa8 THRIFT-1788 C#: Constants static constructor does not compile
Patch: Carl Yeksigian
2012-12-18 22:35:04 +01:00
Jens Geyer
a58a9cb99f THRIFT-1767 unions can't have required fields (Delphi)
Patch: Kenjiro Fukumitsu, Jens Geyer
2012-12-17 23:24:13 +01:00
Jens Geyer
04f70976ac THRIFT-1768 unions can't have required fields (Compiler)
Patch: Jens Geyer
2012-12-17 22:41:21 +01:00
Jens Geyer
59a884b739 THRIFT-1794 C# asyncctp broken
Patch: Carl Yeksigian
2012-12-16 20:04:19 +01:00
Jens Geyer
716454e36e Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/thrift 2012-12-16 19:04:52 +01:00
Jens Geyer
65d83ecf3e THRIFT-1783 C# doesn't handle required fields correctly
Patch: Carl Yeksigian
2012-12-16 19:00:27 +01:00
Roger Meier
e7b0b69246 THRIFT-1630 Equivalent objects that contain sets and maps can serialize differently
Patch: Kamil Salas
2012-12-16 15:44:48 +01:00
Jens Geyer
b030392080 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/thrift 2012-12-15 03:18:26 +01:00
Jens Geyer
0ab273abdf THRIFT-1782 async only defined in silverlight
Patch: Carl Yeksigian
2012-12-14 00:09:15 +01:00
Jens Geyer
ad4467e9db THRIFT-1780 Add option to generate nullable values
Patch: Carl Yeksigian
2012-12-14 00:08:24 +01:00
Jens Geyer
7740739b79 THRIFT-1765 Incorrect error message printed for null or negative keys 2012-12-11 23:38:12 +01:00
Todd Lipcon
2b2560e836 THRIFT-1773. Revert "Thrift-1604:Python exxception handeling for changes from PEP3110"
This reverts commit 6c5ee6ad20.

This commit is being reverted since it broke compatibility with
Python 2.4, which is the latest version included in RHEL5 releases.
2012-12-10 14:29:59 -08:00
Roger Meier
a212369383 THRIFT-1422 async_server.skeleton.cpp include TEventServer.h, but there isn't corresponding file in deed
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1410139 13f79535-47bb-0310-9956-ffa450edef68
2012-11-16 01:22:47 +00:00
Roger Meier
3e5e9d0901 THRIFT-1494 Python generated "Service-remote" script doesn't honor service inheritance
Patch: Nathaniel Cook


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1410130 13f79535-47bb-0310-9956-ffa450edef68
2012-11-16 00:51:59 +00:00
Roger Meier
32104d71bd THRIFT-1752 structs do not implement Comparable and have a redundant cast
Patch: Andrew Gaul


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1410061 13f79535-47bb-0310-9956-ffa450edef68
2012-11-15 22:20:44 +00:00
Roger Meier
3806a743c8 THRIFT-1747 Generated Python code incorrect when declaring constants of a struct type declared in an included thrift file
Patch: Justin Judd


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1410038 13f79535-47bb-0310-9956-ffa450edef68
2012-11-15 21:46:01 +00:00
Roger Meier
e854206180 THRIFT-1724 HTML generator doesn't identify unions in output
Patch: Kevin Radloff


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1400519 13f79535-47bb-0310-9956-ffa450edef68
2012-10-20 21:29:02 +00:00
Roger Meier
cc6ea425b7 THRIFT-1731 error: expected identifier before ';' token
Patch: Martin Vogt


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1400518 13f79535-47bb-0310-9956-ffa450edef68
2012-10-20 21:18:43 +00:00
Jake Farrell
7c7a5e05ba Thrift-1721:Dist broken due to 0.8.0 to 0.9.0 changes
Client: build
Patch: Jake Farrell

Fix dist build to create the 0.9.0 release



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1396880 13f79535-47bb-0310-9956-ffa450edef68
2012-10-11 00:29:11 +00:00
Roger Meier
061d4a2cb4 THRIFT-1695 allow warning-free compilation in VS 2012 and GNU 4.6
Patch: Ben Craig & James K Lowden


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1395277 13f79535-47bb-0310-9956-ffa450edef68
2012-10-07 11:51:00 +00:00
Jake Farrell
2fd8a15fc4 Thrift-1680:Make install requires GNU make
Client: build
patch: Jake Farrell

Updates boost and libevent configure messages, updates thrift help to display error and smaller message, moves help to --help or -help and takes care of // TODO(dreiss): Delete these when everyone is using the new hotness. Welcome to the new hotness everyone.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1391705 13f79535-47bb-0310-9956-ffa450edef68
2012-09-29 00:26:36 +00:00
Henrique Mendonca
6e283a0e6d Thrift-1703:Add leading :: to cpp names
Client: c++
Patch: Jochen Topf


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1390983 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 12:58:40 +00:00
Henrique Mendonca
ffb031d74e Thrift-1696:Compiler fails if namespace of an unknown language is present in the IDL
Patch: Abhishek Kona

print warning instead of throwing an exception


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1389509 13f79535-47bb-0310-9956-ffa450edef68
2012-09-24 18:36:16 +00:00
Roger Meier
3d37fba206 THRIFT-1694 Re-Enable serialization for WP7 Silverlight
Patch: Jens Geyer


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1387715 13f79535-47bb-0310-9956-ffa450edef68
2012-09-19 19:30:36 +00:00
Roger Meier
3087738f28 THRIFT-1651 Support annotations on all elements
Patch: Benjy Weinberger



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1386848 13f79535-47bb-0310-9956-ffa450edef68
2012-09-17 21:18:05 +00:00
Roger Meier
5cac98c659 THRIFT-1686 t_php_generator.cc uses "and" instead of "&&", and causes compiler errors with Visual Studio
Patch: Ben Craig


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1381696 13f79535-47bb-0310-9956-ffa450edef68
2012-09-06 17:59:55 +00:00
Roger Meier
21c0a85079 THRIFT-1615 PHP Namespace (was Thrift for Symfony 2)
Patch: Xavier HAUSHERR


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1381323 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 19:47:14 +00:00
Jake Farrell
e06e8b7e99 Thrift-1671:Cocoa code generator does not put keywords into generated method calls
Client: cocoa
Patch: Jan Brauer

Adds keywords into generated method calls.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1370855 13f79535-47bb-0310-9956-ffa450edef68
2012-08-08 17:38:39 +00:00
Bryan Duxbury
d62032850c THRIFT-1624. java: Isset Generated differently on different platforms
This patch initializes is_union_ to a specific value to try and avoid the issue.

Patch: Brian Bloniarz

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1353784 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 00:32:57 +00:00
Jake Farrell
16b764196f THRIFT-1438: lib/cpp/src/windows/config.h should read version from configure.ac rather than a #define
Client: compiler
Patch: Jake Farrell

Converts compiler/cpp/src/windows/version.h to a template and automates uses of configure.ac version rather than a random #define version string.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1352767 13f79535-47bb-0310-9956-ffa450edef68
2012-06-22 03:51:38 +00:00
Jake Farrell
f42ae012aa Thrift-1567:Thrift/cpp: Allow alternate classes to be used for strings
Client: cpp
Patch: dreiss

The goal of this diff is to allow Thrift strings to be used without
depending on std::string, since it looks like we're starting to move
away from std::string instead of moving to a better implementation.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1352765 13f79535-47bb-0310-9956-ffa450edef68
2012-06-22 03:22:53 +00:00
Roger Meier
122803bade THRIFT-1558 Named Pipe and Anonymous Pipe transport for Windows
Patch: Peace
add pipe crossplatform example to contrib

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1351477 13f79535-47bb-0310-9956-ffa450edef68
2012-06-18 20:23:58 +00:00
Bryan Duxbury
6edb27a5af THRIFT-1622. cpp: Incorrect size returned on read
This patch adds a missing 'xfer +=' in a few spots.

Patch: NN

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1350268 13f79535-47bb-0310-9956-ffa450edef68
2012-06-14 14:36:18 +00:00
Roger Meier
9212e79b3d THRIFT-1627 compiler built using compilers.vcxproj cannot be used to build some test .thrift files
Patch: Andrew Cox

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1349524 13f79535-47bb-0310-9956-ffa450edef68
2012-06-12 21:01:06 +00:00
Roger Meier
febe845f05 THRIFT-1621 Delphi Memory leaks
Patch: Jens Geyer

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1346814 13f79535-47bb-0310-9956-ffa450edef68
2012-06-06 10:32:24 +00:00
Jake Farrell
d11c8bc4be Thrift-1611:Improved code generation for typedefs
Client: delphi
Patch: Jens Geyer

Currently, IDL typedefs are translated into their base types and do not appear in the generated code at all



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1340873 13f79535-47bb-0310-9956-ffa450edef68
2012-05-21 00:07:14 +00:00
Roger Meier
6849f2014d THRIFT-1598 Update Haskell generated code to use Text, Hash{Map,Set}, Vector
Patch: Itai Zukerman

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1340014 13f79535-47bb-0310-9956-ffa450edef68
2012-05-18 07:35:19 +00:00
Jake Farrell
6c5ee6ad20 Thrift-1604:Python exxception handeling for changes from PEP3110
Client: py
Patch: Jake Farrell

Python PEP 3110 changed exception handling by replacing the ',' with 'as'. This was initially introduced in python 2.6 and in 3.0 the ',' usage is no longer suppported. Since exception handling through out the py lib uses the ',' it will need to be converted over to using the 'as' syntax for exceptions



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1339941 13f79535-47bb-0310-9956-ffa450edef68
2012-05-18 01:00:39 +00:00
Jake Farrell
970c86a5f2 Thrift-1607:Incorrect file modes for several source files
Client: build
Patch: Andrew Cox

File modes of some non-script text files (e.g. .xml, .java, .cc) in the source tree include execute permissions (because these files have the svn:executable property).



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1339492 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 05:41:09 +00:00
Jake Farrell
e8c259a08a Thrift-541: Cocoa code generator doesn't put keywords before all arguments.
Client: cocoa
Patch: Andrew McGeachie

Updates args list to contain keywords before any args.


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1338995 13f79535-47bb-0310-9956-ffa450edef68
2012-05-16 03:49:57 +00:00
Jake Farrell
b87e5667a4 Thrift-1079:Support i64 in AS3
Client: as3
Patch: Reverting 

Reverting patch due to usage of non public library which breaks ability to export as3 client to maven central during a release.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1337007 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 02:23:00 +00:00
Christopher Piro
ea7b21d175 fix TApplicationException not imported in Python gencode
used unconditionally in the generated code. "from thrift.Thrift import *" included it before r1169492 but not since.

Reviewed By: dreiss

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1335325 13f79535-47bb-0310-9956-ffa450edef68
2012-05-08 01:45:21 +00:00
Roger Meier
7abda07738 THRIFT-681 The HTML generator does not handle JavaDoc style comments very well
add missing file t_html_generator.h

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1333398 13f79535-47bb-0310-9956-ffa450edef68
2012-05-03 10:23:15 +00:00
Bryan Duxbury
b2f3bcdd08 THRIFT-681. The HTML generator does not handle JavaDoc style comments very well
Patch: Kevin Burnett

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1333222 13f79535-47bb-0310-9956-ffa450edef68
2012-05-02 21:39:01 +00:00
Roger Meier
95b1bd71e3 THRIFT-1588 Java Generated Exceptions don't follow inheritance pattern as other Languages
- reduce NUM_QUERIES within test for slow machines ;-r

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1332809 13f79535-47bb-0310-9956-ffa450edef68
2012-05-01 20:43:26 +00:00
Roger Meier
c75797d906 THRIFT-1583 c_glib leaks memory
THRIFT-1578 C_GLib generated code does not compile
THRIFT-1582 Bad includes of nested thrift files in c_glib

Patch: José Antonio Santos
Minor Modificatons by roger:
- thrift prefix for includes
- g_object_unref instead of g_clear_object (needs glib>=2.28)

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1331752 13f79535-47bb-0310-9956-ffa450edef68
2012-04-28 11:33:58 +00:00
Roger Meier
b661e83fab THRIFT-1277 Node.js serializes false booleans as null
Patch: Henrique Mendonca

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1326371 13f79535-47bb-0310-9956-ffa450edef68
2012-04-15 15:58:43 +00:00
Roger Meier
1516be04e0 Merge branch 'trunk' of https://github.com/benoitdion/thrift into trunk
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1326086 13f79535-47bb-0310-9956-ffa450edef68
2012-04-14 11:03:21 +00:00
Roger Meier
5346e7200a THRIFT-1570 Correctly generate code for empty services.
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325786 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 14:38:19 +00:00
Roger Meier
629d5a9bcf THRIFT-1565 Thrift/cpp: Use default constructor for strings
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325785 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 14:33:56 +00:00
Roger Meier
49ff8b123a THRIFT-1552 Include paths for c/c++ should be prefixed with 'thrift/'
To ensure there are no include path collisions the C and C++ header
include paths should include 'thrift' as the root leaf. This will
prevent having to place /usr/include/thrift into the compilers include
header search path, which might otherwise result in the compiler
accidentally picking up headers that it shouldn't.

e.g. #include <foo/bar.h> should be #include <thrift/foo/bar.h>

Change-Id: I48f2b0f549bda0fc81e85506ac857adc800b98a1

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325674 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 09:12:31 +00:00
Roger Meier
49ef6587b4 THRIFT-1079 Support i64 in AS3
Patch: Ethan Urie

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325048 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 22:28:26 +00:00
Roger Meier
380e919a13 THRIFT-1554 Inherited service methods are not resolved in derived service implementations
Patch: Jens Geyer

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1311311 13f79535-47bb-0310-9956-ffa450edef68
2012-04-09 16:25:47 +00:00
Roger Meier
c64d6f0992 THRIFT-1398 Compiler warning on generated code (Multiface kills -Wall -Werror on gcc 4.6.1)
Patch: Nevo Hed

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1311066 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 18:18:56 +00:00
Roger Meier
5c80802332 THRIFT-1553 thrift nodejs service side can't read map structure, key as enum, value as Object
Patch: Henrique Mendonca

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1310986 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 12:30:00 +00:00
Jake Farrell
b95b0ffa72 THRIFT-1500: d programming language support
Client: D
Patch: David Nadlinger

D program language library and additions



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1304085 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 21:49:10 +00:00
Anthony F. Molinaro
3bba214c13 THRIFT-1532 - slightly better fix, take into account requiredness when adding default values
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1303666 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 06:48:33 +00:00
Anthony F. Molinaro
31835148b2 THRIFT-1532/THRIFT-1475 - fix record generation for erlang
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1303663 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 06:23:36 +00:00
Jake Farrell
17515db934 THRIFT-1534:Required fields in the Delphi code generator.
Client:delphi
Patch:Jens Geyer

Required field changes to isset and generated Read-methods.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1298265 13f79535-47bb-0310-9956-ffa450edef68
2012-03-08 04:05:58 +00:00
Bryan Duxbury
68839504c2 THRIFT-1527. java: Generated implementation of tupleReadStruct in unions return null when the setfield is unrecognized
Unrecognized fields will now result in a TProtocolException when reading with the TupleProtocol.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1295997 13f79535-47bb-0310-9956-ffa450edef68
2012-03-01 23:43:54 +00:00
Ilya Maykov
9be7b38860 THRIFT-481: indentation of ruby classes is off by a few
Compiler: Ruby
Patch: Ilya Maykov

Fixed indentation of gen-rb files by wrapping each file
output stream in a class that keeps track of the indent
level instead of using the global indent.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1295423 13f79535-47bb-0310-9956-ffa450edef68
2012-03-01 05:56:39 +00:00
Ilya Maykov
c00011a752 THRIFT-1204: Ruby autogenerated files should require 'thrift' gem
Library: Ruby
Patch: Ilya Maykov
This patch does 2 things:
1) Adds a "require 'thrift'" line to the *_types.rb and *_constants.rb files,
   to be consistent with *_service.rb which was generating the thrift require
   already.
2) Adds a "rubygems" option to the --gen rb compiler target. When this option
   is specified, the compiler will add a "require 'rubygems'" line to the top
   of each gen-rb file. Defaults to false.


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1294949 13f79535-47bb-0310-9956-ffa450edef68
2012-02-29 02:40:28 +00:00
Bryan Duxbury
b2507dbb0c THRIFT-1518. cpp: Generated C++ code only sends the first optional field in the write() function for a struct
There was some incorrect else if logic added to the CPP generated code, which this patch replaces with the proper functionality.

Patch: Thomas Wiggins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1292508 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 21:14:10 +00:00
Bryan Duxbury
b405ca6be8 THRIFT-1447. java: NullpointerException in ProcessFunction.class :in 'oneway' method
Patch: Ihor Mysak

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1244272 13f79535-47bb-0310-9956-ffa450edef68
2012-02-14 23:35:22 +00:00
Jake Farrell
afb9f970a4 Thrift-556:Ruby compiler does not correctly referred to top-level modules when a submodule masks the top-level name
Client: rb
Patch: Ben Kelly

Prepends a :: to every  place that references the top-level module.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1242376 13f79535-47bb-0310-9956-ffa450edef68
2012-02-09 16:17:50 +00:00
Jake Farrell
f9f01fa1e0 THRIFT-1394:Treatment of optional fields is not consistent between C++ and Java
Client: cpp
Patch: Diwaker Gupta

In CPP, all optional fields are guarded by the isset helper struct. On Java, however, the generated code takes advantage of nullable types: for containers, structs, exceptions, enums, and, notably, strings, the generator elides explicit use of an "isset" bit vector and instead emits checks of the form "field null". This leads to varying behavior between the two languages: an optional string field with a default value will have {{isset[fieldid]}} false on C, but the equivalent test in Java will be true.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1236529 13f79535-47bb-0310-9956-ffa450edef68
2012-01-27 04:48:26 +00:00
Jake Farrell
b2c4952799 Thrift-1465:Visibility of methods in generated java code
Client: java
Patch: Ashutosh Chauhan

Changes visibility of processor getProcessMap() and getEmptyArgs() methods


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1236515 13f79535-47bb-0310-9956-ffa450edef68
2012-01-27 04:01:54 +00:00
Jake Farrell
ba02146682 THRIFT-1504: Cocoa Generator should use local file imports for base Thrift headers
Client: cocoa
Patch: Steve White

Updates thrift headers as global imports instead of local imports



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1236503 13f79535-47bb-0310-9956-ffa450edef68
2012-01-27 03:06:54 +00:00
Roger Meier
0838bf56f5 THRIFT-1489 Add support for WCF bindings (optionally) to C# compiler, allowing web service usage of Thrift generated code
Patch: Kieran Benton
fix: add missing area of XML documentation generation

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1234095 13f79535-47bb-0310-9956-ffa450edef68
2012-01-20 19:42:23 +00:00
Roger Meier
bc2be31e48 THRIFT-1496 PHP compiler not namespacing enums
Patch: Andrew Grumet

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1233930 13f79535-47bb-0310-9956-ffa450edef68
2012-01-20 14:34:49 +00:00
Roger Meier
26cbb388ec THRIFT-1410 C# Partial Classes (for service implementation class)
Patch: Kieran Benton

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1232585 13f79535-47bb-0310-9956-ffa450edef68
2012-01-17 21:32:50 +00:00
Roger Meier
f0e517db99 THRIFT-1489 Add support for WCF bindings (optionally) to C# compiler, allowing web service usage of Thrift generated code
Patch: Kieran Benton

changes by roger:
- use ServiceModel, DataContract only when wcf is enabled
- indent space vs tab
- remove issue on lib/cpp/README_WINDOWS
- add testStringMap on test/csharp/ThriftTest/TestServer.cs
- add build to test/csharp/ThriftTest/maketest.sh

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1232578 13f79535-47bb-0310-9956-ffa450edef68
2012-01-17 21:20:56 +00:00
Roger Meier
eaa61d8fda THRIFT-1267 Node.js can't throw exceptions
Patch: Henrique Mendonca

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1230797 13f79535-47bb-0310-9956-ffa450edef68
2012-01-12 21:38:29 +00:00
Roger Meier
333bbf3d88 THRIFT-1485 Performance: pass large and/or refcounted arguments as "const"
Patch: Jens Geyer

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1228965 13f79535-47bb-0310-9956-ffa450edef68
2012-01-08 21:51:08 +00:00
Bryan Duxbury
bad4174a57 THRIFT-1479. php: Compiled PHP process functions missing writeMessageEnd()
This patch adds in the missing call.

Patch: Andrew Grumet

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1226892 13f79535-47bb-0310-9956-ffa450edef68
2012-01-03 17:35:26 +00:00
Bryan Duxbury
9704630bab THRIFT-1483. java: java compiler does not generate type parameters for services in extended clauses
Patch: Ruslan Shevchenko

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1226889 13f79535-47bb-0310-9956-ffa450edef68
2012-01-03 17:28:45 +00:00
Bryan Duxbury
a3df547c84 THRIFT-317. java: Issues with Java struct validation
Nested structs will now be validated before serialization starts.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1225035 13f79535-47bb-0310-9956-ffa450edef68
2011-12-27 22:26:59 +00:00
Roger Meier
94eecc8259 THRIFT-1168 C++ cob client/server: void functions that throw exceptions
Patch: NewBlood

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1221891 13f79535-47bb-0310-9956-ffa450edef68
2011-12-21 21:23:28 +00:00
Bryan Duxbury
1e79cb40f5 THRIFT-1469. java: Java isset space optimization
This patch gives the generated code some variable-sized options for the isset bit vector. The compiler will attempt to use byte, short, int and long types before reverting to a BitSet for structs with a LOT of optional fields. This should save a fair amount of memory in a lot of cases.

Patch: Brian Bloniarz

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1221828 13f79535-47bb-0310-9956-ffa450edef68
2011-12-21 18:13:29 +00:00
Roger Meier
12d705390d THRIFT-1461 Recent TNonblockingServer changes broke --enable-boostthreads=yes, Windows
Patch: Alexandre Parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1214547 13f79535-47bb-0310-9956-ffa450edef68
2011-12-14 23:35:28 +00:00
Jake Farrell
a99027c708 Thrift-1462: add more strict compiler flags
Reverting MINGW addition for c+++0x 



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1213905 13f79535-47bb-0310-9956-ffa450edef68
2011-12-13 20:12:26 +00:00
Roger Meier
6e96965fdb THRIFT-1462 add more strict compiler flags
FIX: check for MINGW and use reduced compiler flag set for mingw

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1213523 13f79535-47bb-0310-9956-ffa450edef68
2011-12-13 00:36:01 +00:00
Roger Meier
ca10fd4a51 THRIFT-1462 add more strict compiler flags(-Wall -Wextra -std=c++0x -pedantic)
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1213459 13f79535-47bb-0310-9956-ffa450edef68
2011-12-12 22:00:23 +00:00
Roger Meier
aad8fb4fec fix compiler warnings
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1212892 13f79535-47bb-0310-9956-ffa450edef68
2011-12-10 21:50:10 +00:00
Roger Meier
e1d2458f1a THRIFT-1452 generate a swap() method for all generated structs
fix compiler warnings, when having empty structs

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1212593 13f79535-47bb-0310-9956-ffa450edef68
2011-12-09 19:33:07 +00:00
Jake Farrell
343c61d6a7 Thrift-1441: Generate constructor with parameters for exception class to let it update message property automatically.
Client:delphi
Patch: Kenjiro Fukumitsu

Add the function to delphi generator that generates constructor with parameters to initialize members,if the class is exception and have more than zero parameters.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1212226 13f79535-47bb-0310-9956-ffa450edef68
2011-12-09 02:29:56 +00:00
Jake Farrell
3318201c2f Thrift-1452: generate a swap() method for all generated structs
Client: cpp
Patch: Dave Watson

Convenience method for all C++ thrift types to add swap() function



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1212130 13f79535-47bb-0310-9956-ffa450edef68
2011-12-08 21:15:50 +00:00
Roger Meier
284a9b56d7 THRIFT-1037 Proposed changes to support Silverlight, Windows Phone and AsyncCTP v3
Patch: Damian Mehers & Jens Geyer

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1211880 13f79535-47bb-0310-9956-ffa450edef68
2011-12-08 13:39:56 +00:00
Jake Farrell
23bf35daa3 Thrift-1454:Better handling of write on a closed TSocket
Client: cpp
Patch: Dave Watson

TSocket.send() was expecting a send() on the underlying socket
to fail by returning zero, but the actual behavior is to raise
an exception.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1211736 13f79535-47bb-0310-9956-ffa450edef68
2011-12-08 02:02:20 +00:00
Jake Farrell
a2c5674920 Thrift-1445:minor C++ generator variable cleanup
Client: cpp
Patch: Dave Watson

In generate_process_function(), service_func_name is always used as a
string literal. Therefore, construct it with the double quotes
built-in, rather than having to add them everywhere we use it.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1210757 13f79535-47bb-0310-9956-ffa450edef68
2011-12-06 02:59:04 +00:00
Jake Farrell
9689d89df1 Thrift-1340: Add support of ARC to Objective-C
Client: Objective-c
Patch: Hirano Satoshi

Adds -objc-arc flag to compiler and if used removes the retain/release/autorelease from generated code



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1210732 13f79535-47bb-0310-9956-ffa450edef68
2011-12-06 01:07:17 +00:00
Jake Farrell
6fa2b30940 Thrift-1446:Compile error with Delphi 2009 in constant initializer
Client: delphi
Patch: Kenjiro Fukumitsu 

Generated code cannot be compiled with Delphi 2009 due to the bug in constant initializer.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1210728 13f79535-47bb-0310-9956-ffa450edef68
2011-12-06 00:59:30 +00:00
Jake Farrell
3775a683af Thrift-1090: Document the generation of a file called "Constants.java"
Client: java
Patch: Mike Riley

Adds program_name to the Constants file in java to match all other client libs.


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1210724 13f79535-47bb-0310-9956-ffa450edef68
2011-12-06 00:48:04 +00:00
Jake Farrell
9901069442 Updating trunk to 0.9.0 version.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1208214 13f79535-47bb-0310-9956-ffa450edef68
2011-11-30 02:09:46 +00:00
Jake Farrell
a1b671dba7 Thrift-1330: PHP Namespaces no longer generated
Client: php
Patch: Mike Riley

Fixes namespaces in PHP generator to with with php >= 5.3.x



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1206532 13f79535-47bb-0310-9956-ffa450edef68
2011-11-26 18:24:43 +00:00
Roger Meier
94519b3943 THRIFT-1434 Node.js Thrift compiler fails to generate server code using inheritance
Patch: Wade Simmons

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1205592 13f79535-47bb-0310-9956-ffa450edef68
2011-11-23 21:02:46 +00:00
Jake Farrell
ac10256fcc Thrift-1435: make TException.Message property conformant to the usual expectations
Client: delphi
Patch: Jens Geyer

Make delphi exceptions act like standard TException within other languages 



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1205415 13f79535-47bb-0310-9956-ffa450edef68
2011-11-23 14:30:41 +00:00
Jake Farrell
a6c031ad41 Thrift-1432: Javascript struct constants declared in the same file as their struct definition will cause an error
Client: js
Patch: Mike Riley

Flips print out of constants and structs within the generator to allow for use of constants within the structs.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1204495 13f79535-47bb-0310-9956-ffa450edef68
2011-11-21 13:52:51 +00:00
Jake Farrell
e0c5316736 Thrift-1426: Dist package missing files for release 0.8
Client: build
Patch: Jake Farrell

Cleans up dist target and removes extra folders.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1202686 13f79535-47bb-0310-9956-ffa450edef68
2011-11-16 12:58:36 +00:00
Bryan Duxbury
02357f29e8 THRIFT-1411. java: java generator does not provide type parameter for TBaseProcessor
Patch: Jake Douglas

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1201961 13f79535-47bb-0310-9956-ffa450edef68
2011-11-14 23:12:20 +00:00
Jake Farrell
605c760ba6 Thrift-1251: Generated java code should indicate which fields are required and which are optional
Client: java
Patch: Jake Farrell

Fixes optional/required comments on fields.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1198386 13f79535-47bb-0310-9956-ffa450edef68
2011-11-06 15:02:30 +00:00
Roger Meier
6f7681f91d THRIFT-1361 revert compiler/cpp/src/thrifty.yy change
=> breaks mingw build
=> memleak fixes reported by cppcheck

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1198347 13f79535-47bb-0310-9956-ffa450edef68
2011-11-06 12:04:28 +00:00
Roger Meier
38315786e5 THRIFT-1361 Optional replacement of pthread by boost::thread
Patch: Alexandre Parenteau
rev3

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1198339 13f79535-47bb-0310-9956-ffa450edef68
2011-11-06 11:29:41 +00:00
Roger Meier
1b6153bdd1 THRIFT-1277 Node.js serializes false booleans as null
revert patch => breaks js

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1198334 13f79535-47bb-0310-9956-ffa450edef68
2011-11-06 10:37:11 +00:00
Jake Farrell
28459dc9c5 Thrift-1415: delphi: add version Info to the library
Client: delphi
Patch: Jens Geyer 

Adding versioning to delphi library



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1197957 13f79535-47bb-0310-9956-ffa450edef68
2011-11-05 13:36:27 +00:00
Jake Farrell
48bb0e2ad4 Thrift-1277: Node.js serializes false booleans as null
Client: js
Patch: Hans Duedal 

When serializing boolean types, false booleans are serialized as null instead of false switching to  using loose compare instead



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1197955 13f79535-47bb-0310-9956-ffa450edef68
2011-11-05 13:16:34 +00:00
Jake Farrell
aad3d1d63e Thrift-1409: Name conflict check does not work properly for exception object(Delphi).
Client: delphi
Patch: Kenjiro Fukumitsu

Delphi compiler's naming check does not work properly with exception object in the function that generates struct writer.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1195747 13f79535-47bb-0310-9956-ffa450edef68
2011-11-01 01:08:46 +00:00
Jake Farrell
601bb5e87f THRIFT-1413: Generated code does not read MapEnd / ListEnd / SetEnd
Client: delphi
Patch: Jens Geyer

The generated code lacks calls to ReadMapEnd, ReadListEnd and ReadSetEnd. Although actually no problem occurs with the BinaryProtocol, other protocols (like JSON) do some important things there.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1195466 13f79535-47bb-0310-9956-ffa450edef68
2011-10-31 14:13:13 +00:00
Jake Farrell
73a921f85c Thrift-1408: Delphi Test Server: Exception test case fails due to naming conflict with e.message
Client: delphi
Patch: jens Geyer

Fix name comflict with e.message 



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1195461 13f79535-47bb-0310-9956-ffa450edef68
2011-10-31 14:07:14 +00:00
Jake Farrell
f55f33bfba THRIFT-1405: Delphi compiler does not generates container serializer properly
Client: delphi
Patch: Kenjiro Fukumitsu

Fixess a bug in the function that generates serializer of containers



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1189009 13f79535-47bb-0310-9956-ffa450edef68
2011-10-26 02:40:14 +00:00
Jake Farrell
d2b3bb4e23 THRIFT-1406: Build error after applying THRIFT-1395
Client: delphi
Patch: Jens Geyer

Fixes build failure due to t_delphi_generator.cc:780: error: integer constant is too 
large for 'long' type



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1189006 13f79535-47bb-0310-9956-ffa450edef68
2011-10-26 02:29:48 +00:00
Jake Farrell
d09362c5c7 THRIFT-1404: Delphi compiler generates struct reader code with problem.
Client: delphi
Patch: Kenjiro Fukumitsu

After recieved STOP,it calls additional ReadFieldEnd, which is different from the implementation of other language compiler.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1189005 13f79535-47bb-0310-9956-ffa450edef68
2011-10-26 02:25:07 +00:00
Jake Farrell
0c0f651e10 Thrift-1395: Patch to prevent warnings for integer types in some cases
Client: delpi
Patch: Jens Geyer

Constants such as i32 = 0x80000000 produce a Delphi warning. The current code renders such values as positive integer, which needs an explicit typecast to satisfy the Delphi compiler.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1188494 13f79535-47bb-0310-9956-ffa450edef68
2011-10-25 02:20:26 +00:00
Jake Farrell
8514755daf THRIFT-1397: CI server fails during build due to unused parameters in delphi generator
Client: delphi
Patch: Kenjiro Fukumitsu 

Cleans up unused parameters in delphi generator.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1186794 13f79535-47bb-0310-9956-ffa450edef68
2011-10-20 13:30:08 +00:00
Jake Farrell
3b54621793 Thrift-1396: Dephi generator has dependacy on boost 1.42 later.
Client: delphi
Patch: Kenjiro Fukumitsu 

Patch to fully remove boost uuid within the delphi generator.  



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1186603 13f79535-47bb-0310-9956-ffa450edef68
2011-10-20 02:49:48 +00:00
Jake Farrell
7ae13e10f7 Thrift-1366: Delphi generator, lirbrary and unit test.
Client: delphi
Patch: Kenjiro Fukumitsu

Adding delphi XE generator, lib and unit tests.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1185688 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 14:35:26 +00:00
Bryan Duxbury
6c928f3f5f THRIFT-1130. compiler: Add the ability to specify symbolic default value for optional boolean
Patch: Nevo Hed

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1183115 13f79535-47bb-0310-9956-ffa450edef68
2011-10-13 21:32:52 +00:00
Jake Farrell
fae04ead81 THRIFT-1384: Java help meny missing newline near javame flag
Client: build
patch: Jake Farrell

Adds newline to java stanza in thrift --help menu



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1180276 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 23:15:03 +00:00
Jake Farrell
2361dd1711 Thrift-1373: Fix user-defined exception generation in thrift (python)
Client: py
Patch: Dave Watson

forgotten include of TException in py imports section



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1180119 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 17:41:48 +00:00
Jake Farrell
581481f232 Thrift-1379: fix uninitialized enum values in thrift C++ objects
Client: cpp
Patch: Dave Watson

The thrift-generated code for C++ class objects does not provide any
initialization for enum values, so they wind up containing random/uninitialized
data. This causes problems when clients do not send argument data, as the server
receives random data rather than zero for unpassed args.
Enums should be initialized to zero.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1179909 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 00:25:46 +00:00
Jake Farrell
b5d94e07c4 Thrift-1376: Make port specification option in thrift remote
Client: py
Patch: Dave Watson

The thrift-generated Python service client allows overriding the default host/port by doing "-h host:port" on the command line. Oftentimes, you want to override the host but not the port, as most services run on well-defined ports.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1179905 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 00:14:34 +00:00
Jake Farrell
2ce7f66dea Thrift-1373: Fix user-defined exception generation in thrift (python)
Client: py
Patch: Dave Watson

Fixed python code generation so that user-defined exceptions have a
base class of TException rather than Exception.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1179903 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 00:04:56 +00:00
Bryan Duxbury
40d51a28d7 THRIFT-1365. java: TupleProtocol#writeBitSet unintentionally writes a variable length byte array
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1176072 13f79535-47bb-0310-9956-ffa450edef68
2011-09-26 21:29:15 +00:00
Bryan Duxbury
f35741729f inconsequential indentation fix to java compiler
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1176034 13f79535-47bb-0310-9956-ffa450edef68
2011-09-26 20:32:59 +00:00
Roger Meier
db3c9249c8 THRIFT-1359 --gen-cob cpp:cob_style does not compile anymore
Patch: Alexandre Parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1175308 13f79535-47bb-0310-9956-ffa450edef68
2011-09-25 07:16:17 +00:00
Roger Meier
8cd3b1aa3c THRIFT-1031 Patch to compile Thrift for vc++ 9.0 and 10.0
=> some more improvements

Patch: James Dickson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1174801 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 14:25:22 +00:00
Jake Farrell
dec8c54f8e Thrift-857: tests run by "make install" fail if generators are disabled
Client: build
Patch: jfarrell

removes --enable-gen* from configure and adds all generators by default.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1173436 13f79535-47bb-0310-9956-ffa450edef68
2011-09-21 00:15:27 +00:00
Bryan Duxbury
18784d7ccc THRIFT-1339. java: Extend Tuple Protocol to TUnions
This patch implements TupleProtocol (and general Scheme support) to TUnion descendants.

Patch: Armaan Sarkar

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1173418 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 22:53:31 +00:00
Roger Meier
84e4a3c181 THRIFT-1031 Patch to compile Thrift for vc++ 9.0 and 10.0
Patch: James Dickson and Alexandre Parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1171777 13f79535-47bb-0310-9956-ffa450edef68
2011-09-16 20:58:44 +00:00
Roger Meier
508b317269 THRIFT-1031 Patch to compile Thrift for vc++ 9.0 and 10.0 (partial)
no chmod on windows for go and py compiler
Patch: James Dickson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1171520 13f79535-47bb-0310-9956-ffa450edef68
2011-09-16 12:02:57 +00:00
Roger Meier
1fd248fa04 fix spelling issue within license
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1170181 13f79535-47bb-0310-9956-ffa450edef68
2011-09-13 13:54:46 +00:00
Roger Meier
f4eec7a57b THRIFT-1115 python TBase class for dynamic (de)serialization, and __slots__ option for memory savings
Patch: Will Pierce

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1169492 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 18:16:21 +00:00
Roger Meier
b288050682 uncomment handler parameter, so compile does not fail if they
are undefined

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1167686 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 09:09:52 +00:00
Roger Meier
4f8a523fa0 THRIFT-1238 Thrift JS client cannot read map of structures
Patch: Henrique Mendonca

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1167032 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 08:17:02 +00:00
Jake Farrell
c4beda9802 Thrift-1279: type set is handled incorrectly when writing object
Client: php
Patch: Darius Staisiunas

Fixes issue to iIterate through scalar types correctly.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1165703 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 15:19:18 +00:00
Bryan Duxbury
adaf82615b THRIFT-1319. java: Mismatch between how a union reads and writes a container
This patch fixes the problem in the java generator (and removes an unnecessary comment). It also amends TestTUnion to catch this.

Patch: Armaan Sarkar

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1164202 13f79535-47bb-0310-9956-ffa450edef68
2011-09-01 18:54:07 +00:00