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
Bryan Duxbury
2173ce0250
THRIFT-1315. cpp: generate server interface factory classes
...
Patch: Adam Simpkins
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1164187 13f79535-47bb-0310-9956-ffa450edef68
2011-09-01 18:00:37 +00:00
Jake Farrell
6993569d04
Thrift-1299: If SSL is available, 'thrift' binary links against it
...
Patch: jfarrell
Removes the dependencies added from configure.ac in the thrift compiler makefile.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1162927 13f79535-47bb-0310-9956-ffa450edef68
2011-08-29 18:22:11 +00:00
Bryan Duxbury
b8c8e0b9bc
THRIFT-1298. java: Standard scheme doesn't read or write metadata along with field values
...
This patch makes StandardScheme write metadata, and adds tests against a static known-good Binary-serialized struct for a reference.
Patch: Armaan Sarkar
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1162917 13f79535-47bb-0310-9956-ffa450edef68
2011-08-29 17:50:31 +00:00
Bryan Duxbury
cff83579d7
THRIFT-1288. cpp: Allow typedefed exceptions in throws clauses
...
Patch: David Reiss
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1161271 13f79535-47bb-0310-9956-ffa450edef68
2011-08-24 20:53:03 +00:00
Bryan Duxbury
b68f16634a
THRIFT-1287. cpp: start refactoring some of the C++ processor
...
Move the generation of Processors into a separate subclass.
Patch: Adam Simpkins
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1161223 13f79535-47bb-0310-9956-ffa450edef68
2011-08-24 18:35:55 +00:00
Bryan Duxbury
0fa8ff7fd4
THRIFT-1281. compiler: add @generated to the docblock
...
Patch: Bill Fumerola
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1160943 13f79535-47bb-0310-9956-ffa450edef68
2011-08-24 00:28:18 +00:00
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