Commit Graph

959 Commits

Author SHA1 Message Date
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