Commit Graph

796 Commits

Author SHA1 Message Date
Bryan Duxbury
8eebc2c3e0 THRIFT-1284. cpp: fix processor inheritance
Don't make processors that have a proper parent class also inherit from TProcessor.

Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1160933 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 23:26:58 +00:00
Bryan Duxbury
1b90e3dc25 THRIFT-1283. cpp: wrap t_cpp_generator::generate_process_function() to 80
Adjust the line width to 80 for generated CPP classes.

Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1160931 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 23:21:59 +00:00
Roger Meier
a94d2e5921 THRIFT-1269 thrift: handle undeclared exceptions in the async
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1160453 13f79535-47bb-0310-9956-ffa450edef68
2011-08-22 21:38:50 +00:00
Roger Meier
0c3c8959a3 THRIFT-1274 Making * a known symbol
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1160451 13f79535-47bb-0310-9956-ffa450edef68
2011-08-22 21:38:16 +00:00
Bryan Duxbury
da9c6e1aba THRIFT-1254. javame: Code can't be compiled against a regular JRE: Object.clone() override has a different return type
This patch mirrors a previous commit to the main Java library by removing the clone() implementation altogether.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1160333 13f79535-47bb-0310-9956-ffa450edef68
2011-08-22 16:59:20 +00:00
Bryan Duxbury
160cbe6718 THRIFT-1271. cpp: missing namespace in generated local reflection
Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1159734 13f79535-47bb-0310-9956-ffa450edef68
2011-08-19 18:32:51 +00:00
Bryan Duxbury
235f8b5899 THRIFT-1274. compiler: fail compilation if an unexpected token is encountered
This patch makes the lexer throw an exception when an unexpected token is encountered, as opposed to the standard behavior of just printing it out and doing nothing.

Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1159733 13f79535-47bb-0310-9956-ffa450edef68
2011-08-19 18:27:47 +00:00
Bryan Duxbury
0b7eeb5975 THRIFT-1275. cpp: always prefix namespaces with ' ::'
Ensures no accidental namespace clashes.

Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1159729 13f79535-47bb-0310-9956-ffa450edef68
2011-08-19 18:23:39 +00:00
Roger Meier
887ff756cb THRIFT-1276 Add thrift compiler option to suppress warnings about
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1159593 13f79535-47bb-0310-9956-ffa450edef68
2011-08-19 11:25:39 +00:00
Roger Meier
b6af6dbf05 (void) unused parameters to reduce compiler warnings to zero!
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1159405 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 20:31:16 +00:00
Bryan Duxbury
c7206a4011 THRIFT-1270. compiler: add --allow-neg-keys argument to allow
This switch allows the user to specify explicit negative field IDs in Thrift IDL in order to avoid breaking wire protocol.

Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1158967 13f79535-47bb-0310-9956-ffa450edef68
2011-08-17 23:17:04 +00:00
Bryan Duxbury
1121b47c09 THRIFT-169. java: Pluggable Serializers
THRIFT-1239. java: TupleProtocol- An extremely compact, temporary protocol

This monster commit is the combination of the two above tickets, providing a new serialization framework and the first new consumer in one go.

Patch: Armaan Sarkar

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1156728 13f79535-47bb-0310-9956-ffa450edef68
2011-08-11 18:50:58 +00:00
Roger Meier
de8d1857e8 THRIFT-1241 php namespace generation
realization of THRIFT-777

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1154045 13f79535-47bb-0310-9956-ffa450edef68
2011-08-04 23:08:35 +00:00
Bryan Duxbury
b342ddf00b THRIFT-1251. java: Generated java code should indicate which fields are required and which are optional
Patch: Takashi Yonebayashi

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1153302 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 23:10:32 +00:00
Bryan Duxbury
d9b32835ea THRIFT-1253. javame: Code generated for maps is not compiling
Fix a casting issue.

Patch: Raphael Bartement

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1153270 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 20:51:55 +00:00
Roger Meier
040b12483a THRIFT-1233 Remove unused include in generated C++ code
Note:  revert patch and include transport/TBufferTransports.h
Patch: Alexandre Parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1151967 13f79535-47bb-0310-9956-ffa450edef68
2011-07-28 18:49:39 +00:00
Roger Meier
a8cef6e55b THRIFT-916 gcc warnings in c++ header files
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1147700 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 18:55:59 +00:00
Roger Meier
7e056e7572 THRIFT-1222 Unhandled exception for TEvhttpServer request
Patch: Alexandre Parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1147542 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 07:28:28 +00:00
Jake Farrell
cdbf36c608 Thrift-1233: Remove unused include in generated C++ code
Client: c++
Patch: Diwaker Gupta

Removing unused include of TTransportUtils.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1146901 13f79535-47bb-0310-9956-ffa450edef68
2011-07-14 21:25:08 +00:00
Bryan Duxbury
b7bd5626aa THRIFT-1177. go: Update thrift to reflect changes in Go's networking libraries
Patch: Aalok Shah

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1146167 13f79535-47bb-0310-9956-ffa450edef68
2011-07-13 17:58:05 +00:00
Jake Farrell
6462185074 Thrift-1234: thrift --help is missing doc on py:utf8strings
Client:python
Patch: Eric Rannaud

Updated displayed options for python help to print py:utf8strings availability.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1145175 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 13:47:25 +00:00
Roger Meier
6b0d456716 THRIFT-1232 JavaScript TException should be a constructor function
Patch: Pascal Bach
file: 1232-Improve-Exception-handling-and-make-error-hierarchy.patch

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1144292 13f79535-47bb-0310-9956-ffa450edef68
2011-07-08 12:44:29 +00:00
Jake Farrell
4d116e18e7 Thrift-1220: TRpocessor::process never returns false
Client: c++
Patch: Diwaker Gupta

Fixes issue with return values always returning true from process method when an exception or error occurs. 



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1140262 13f79535-47bb-0310-9956-ffa450edef68
2011-06-27 18:44:04 +00:00
Jake Farrell
dfb8ba482e Thrift-627: should c++ have setters for optional fields?
client: c++
patch: Eric Rannaud

Updated optional setter patch to preserve case within generated code.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1139283 13f79535-47bb-0310-9956-ffa450edef68
2011-06-24 12:58:47 +00:00
Roger Meier
2079bfe712 THRIFT-1214 JavaScript constructor does not accept object properties
Patch: Henrique Mendonca


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1138013 13f79535-47bb-0310-9956-ffa450edef68
2011-06-21 14:09:13 +00:00
Bryan Duxbury
d1df20a20d THRIFT-418. rb: Don't do runtime sorting of struct fields
A simpler version of the already-committed patch.

Patch: Ilya Maykov

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1136189 13f79535-47bb-0310-9956-ffa450edef68
2011-06-15 20:52:57 +00:00
Bryan Duxbury
df8a0e6fca THRIFT-418. rb: Don't do runtime sorting of struct fields
Patch: Ilya Maykov

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1134122 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 22:46:28 +00:00
Roger Meier
af7804e29a THRIFT-1200 js: JS compiler generates code that clobbers existing namespaces
fix broken build(jslint) introduced with original patch


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1134093 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 21:35:11 +00:00
Jake Farrell
38dcb685e1 Thrift-1181: AS3 compiler generates incorrect code for setting default values in constructor
Client: as3
Patch: Ethan Urie

Fix generated statements syntax to remove :type of the variable.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1134039 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 18:55:12 +00:00
Bryan Duxbury
7a79d39957 THRIFT-1180. as3: AS3 compiler generates uncompilable code for binary types.
Switch to ByteArray.

Patch: Ethan Urie

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1133617 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 00:40:47 +00:00
Bryan Duxbury
9579b64922 fix indentation
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1133615 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 00:36:55 +00:00
Bryan Duxbury
aad0d6510c THRIFT-1200. js: JS compiler generates code that clobbers existing namespaces
Patch: Ilya Maykov

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1133606 13f79535-47bb-0310-9956-ffa450edef68
2011-06-08 23:51:24 +00:00
Bryan Duxbury
63c2d378c5 THRIFT-1199. java: Union structs should have generated methods to test whether a specific field is currently set
Patch: Piotr Kozikowski

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1133482 13f79535-47bb-0310-9956-ffa450edef68
2011-06-08 17:46:55 +00:00
Roger Meier
462af9de2a THRIFT-1165 Missing parameter names for C++ oneway stubs
Patch: David Nadlinger


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1129907 13f79535-47bb-0310-9956-ffa450edef68
2011-05-31 20:33:51 +00:00
Bryan Duxbury
9a42239eec THRIFT-1170. java: Thrift Generated Code and Java 5
This patch adds a trivial java5 option to the java generator.

Patch: Greg Moulliet

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1126765 13f79535-47bb-0310-9956-ffa450edef68
2011-05-23 21:41:02 +00:00
Roger Meier
5860f8850e THRIFT-1176 Thrift compiler global leakage js
Patch: Dan Di Spaltro

includes updated test.html to get qunit.js with correct mime-type(IE9 complains)
Fixed by Roger Meier


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1125892 13f79535-47bb-0310-9956-ffa450edef68
2011-05-22 09:59:34 +00:00
Jake Farrell
aeb4411d1c Thrift-835: Bad AS3 syntax in constructors that set default values
Client: as3
Patch: Justin Florentine

Generated AS3 object won't compile since the compiler uses the same function that generates member declarations.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1125067 13f79535-47bb-0310-9956-ffa450edef68
2011-05-19 19:23:26 +00:00
Roger Meier
6b38cf6805 THRIFT-1146 add java:android_legacy option to the compiler
Issue: Android Incompatibility : in Android < 2.3 java.io.IOException doesn't support for Throwable parameter in constructor

Patch: Alessandro Rossi


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1094044 13f79535-47bb-0310-9956-ffa450edef68
2011-04-16 20:05:51 +00:00
Roger Meier
0b0c90a7f9 THRIFT-1060 fb303 build error for cpp
Patch: Sudhir Jorwekar


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1094028 13f79535-47bb-0310-9956-ffa450edef68
2011-04-16 18:55:11 +00:00
Bryan Duxbury
b891145894 THRIFT-342. php: PHP: can't have sets of complex types
This patch implements a dual approach for scalars vs objects.

Patch: Jake Farrell

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1091580 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 22:03:45 +00:00
Roger Meier
08d4681438 THRIFT-1137 add Compiler Version Info to generated files
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1091546 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 19:08:21 +00:00
Roger Meier
08b309997f THRIFT-1087 Nonblocking asynchronous JS services
Patch: Henrique Mendonca


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1089637 13f79535-47bb-0310-9956-ffa450edef68
2011-04-06 21:30:53 +00:00
Anthony F. Molinaro
54af25e3d3 THRIFT-1126 - extended struct info + minor fixes
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1087585 13f79535-47bb-0310-9956-ffa450edef68
2011-04-01 05:34:27 +00:00
Roger Meier
39e9c3036b THRIFT-1124 add ifdef for crossplatform mkdir, ugly but it works
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1086852 13f79535-47bb-0310-9956-ffa450edef68
2011-03-30 06:14:06 +00:00
Roger Meier
b7bc726486 THRIFT-1124 go compiler does now mkdir without mask
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1086838 13f79535-47bb-0310-9956-ffa450edef68
2011-03-30 04:52:50 +00:00
Anthony F. Molinaro
ff20fa11e0 THRIFT-27 : use default values when generating erlang records
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1086752 13f79535-47bb-0310-9956-ffa450edef68
2011-03-29 21:19:03 +00:00
Bryan Duxbury
137fea686e THRIFT-1120. csharp: proto.WriteListEnd being called in the wrong place
Patch: guoyunfeng

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1086260 13f79535-47bb-0310-9956-ffa450edef68
2011-03-28 14:52:25 +00:00
Bryan Duxbury
3cf5daf9cf THRIFT-1111. html: The HTML generator does not distinguish between string and binary types
Patch: Adrian Muraru

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1085480 13f79535-47bb-0310-9956-ffa450edef68
2011-03-25 17:28:19 +00:00
Bryan Duxbury
1709d40b4f THRIFT-1107. py: improvement for compiler-generated python for 'None' object comparisons
This patch switches from 'x != None' to 'x is not None' for a small performance boost.

Patch: Will Pierce

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1084661 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 18:15:19 +00:00
Bryan Duxbury
f51a4ce89e THRIFT-1105. ocaml: OCaml generator does not prefix methods of included structs with their type
This patch fixes the ocaml generator to generate good code when the 'include' Thrift IDL directive is used.

Patch: Joel Raymont

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1084654 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 17:57:21 +00:00