Andrew McGeachie [Tue, 21 Jul 2009 21:14:19 +0000 (21:14 +0000)]
THRIFT-280. Server-side Cocoa implementation.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@796538
13f79535-47bb-0310-9956-
ffa450edef68
Andrew McGeachie [Tue, 21 Jul 2009 20:14:31 +0000 (20:14 +0000)]
THRIFT-59. Make sure we don't over-release strings after we deserialize them.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@796518
13f79535-47bb-0310-9956-
ffa450edef68
Andrew McGeachie [Tue, 21 Jul 2009 17:22:03 +0000 (17:22 +0000)]
THRIFT-545. Fix mem leak in generated 'description' method
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@796391
13f79535-47bb-0310-9956-
ffa450edef68
Andrew McGeachie [Tue, 21 Jul 2009 16:51:49 +0000 (16:51 +0000)]
THRIFT-521. Generate objective-c 2.0 propery declarations on iphone and OS X 10.5 and greater.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@796377
13f79535-47bb-0310-9956-
ffa450edef68
Andrew McGeachie [Tue, 21 Jul 2009 16:12:33 +0000 (16:12 +0000)]
THRIFT-520. Fix generation of cocoa constants when a namespace prefix is set.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@796356
13f79535-47bb-0310-9956-
ffa450edef68
Andrew McGeachie [Tue, 21 Jul 2009 15:34:07 +0000 (15:34 +0000)]
THRIFT-533. Fix write:offset:length: to ensure all requested data is written.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@796351
13f79535-47bb-0310-9956-
ffa450edef68
Andrew McGeachie [Tue, 21 Jul 2009 15:30:16 +0000 (15:30 +0000)]
THRIFT-344. Add a 'log_unexpected' option to the cocoa generator. off by default. when supplied, unexpected field IDs and types are logged when reading a struct.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@796347
13f79535-47bb-0310-9956-
ffa450edef68
Andrew McGeachie [Tue, 21 Jul 2009 14:45:12 +0000 (14:45 +0000)]
THRIFT-343. Import <Foundation/Foundation.h> instead of <Cocoa/Cocoa.h> to support iPhone
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@796327
13f79535-47bb-0310-9956-
ffa450edef68
Andrew McGeachie [Tue, 21 Jul 2009 14:33:17 +0000 (14:33 +0000)]
THRIFT-59. Fix memory leak by releasing allocated objects after assigning to container.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@796320
13f79535-47bb-0310-9956-
ffa450edef68
Esteve Fernandez [Fri, 17 Jul 2009 18:35:52 +0000 (18:35 +0000)]
THRIFT-535. py: Twisted Thrift protocol max length is too small (fix off-by-one error in MAX_LENGTH)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@795187
13f79535-47bb-0310-9956-
ffa450edef68
Esteve Fernandez [Fri, 17 Jul 2009 18:18:19 +0000 (18:18 +0000)]
THRIFT-535. py: Twisted Thrift protocol max length is too small
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@795176
13f79535-47bb-0310-9956-
ffa450edef68
T Jake Luciani [Fri, 17 Jul 2009 01:37:01 +0000 (01:37 +0000)]
THRIFT-542: Perl compiler uses invalid method 'method_exists' and subsequent test
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@794939
13f79535-47bb-0310-9956-
ffa450edef68
T Jake Luciani [Fri, 17 Jul 2009 01:34:50 +0000 (01:34 +0000)]
THRIFT-542: Perl compiler uses invalid method 'method_exists' and subsequent test
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@794938
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Tue, 14 Jul 2009 01:42:09 +0000 (01:42 +0000)]
THRIFT-543. java: Generate normal style java files should respect the "optional" keyword when serializing
As the summary suggests, this patch causes "optional" fields to be skipped if they are unset, even if they are primitives. As this patch is for the non-beans style generator, the user is expected to maintain the set/unset status themselves.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@793778
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Mon, 13 Jul 2009 17:21:03 +0000 (17:21 +0000)]
THRIFT-350. php: Fix the extension build when C++ is not already used
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@793630
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Thu, 2 Jul 2009 20:28:33 +0000 (20:28 +0000)]
THRIFT-525. csharp: ThriftTest project will not generate c# from .thrift file or generate ThriftImpl.dll
C# test project correctly references directories with spaces and deletes only data it generates
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@790732
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Thu, 2 Jul 2009 20:18:12 +0000 (20:18 +0000)]
THRIFT-531. csharp: C# project and solution files reference external source control system
This patch removes the external source providers from all csproj and sln files.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@790731
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Thu, 2 Jul 2009 20:15:05 +0000 (20:15 +0000)]
THRIFT-204. csharp: C# Partial Classes
C# structs are now generated as partial classes so they can be extended without wrapping.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@790730
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Wed, 24 Jun 2009 17:55:53 +0000 (17:55 +0000)]
THRIFT-526. rb: Generated Ruby enums have no good way to get the names back out once you have a number.
enums generated in Ruby will now have a static map of enum values to names.
Patch by Adam Coffman (with slight modifications).
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@788098
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Thu, 18 Jun 2009 23:30:03 +0000 (23:30 +0000)]
THRIFT-524. erlang: Decapitalize file names in include directives
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@786334
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Wed, 17 Jun 2009 16:43:25 +0000 (16:43 +0000)]
THRIFT-378. java: Java servers do not turn internal errors into thrift exceptions
This patch causes Java servers to log internal server errors and return an INTERNAL_ERROR exception instead of just closing the connection.
Author: Jonathan Ellis
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@785713
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Thu, 4 Jun 2009 02:05:25 +0000 (02:05 +0000)]
THRIFT-462. java: Installed jar shouldn't be executable
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@781639
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Thu, 4 Jun 2009 02:01:35 +0000 (02:01 +0000)]
THRIFT-211. erlang: Modify test_tether to test protocol error handling as well
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@781637
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Thu, 4 Jun 2009 02:01:32 +0000 (02:01 +0000)]
THRIFT-211. erlang: Support "tethered" clients
Add a client option that causes clients to monitor their creators
and terminate when the creator dies. This makes it possible to
prevent client leaks without linking, because the latter causes
application code to be killed when a transport error occurs and
exits are not trapped.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@781636
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Thu, 4 Jun 2009 02:01:28 +0000 (02:01 +0000)]
THRIFT-211. erlang: Allow clients to be created without connecting
Add a client option to prevent the initial connect (which causes
the protocol factory to be ignored). The main use case for this
is testing the proper handling of clients that cannot connect.
Update the tether test to use this feature instead of a raw
gen_server:start call.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@781635
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Thu, 4 Jun 2009 02:01:24 +0000 (02:01 +0000)]
THRIFT-211. erlang: Support unlinked Thrift clients.
- Create a thrift_client:start function that accepts client options.
- Make start_link a wrapper that adds {monitor, link}.
- Add a test to make sure that everything dies or doesn't die as expected.
(The test has to be run manually.)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@781634
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Thu, 4 Jun 2009 00:32:57 +0000 (00:32 +0000)]
THRIFT-469. cpp: Fix a bug in TimerManager::add
The old code didn't notify waiters when the inserted task's timeout
was less than the current timeout because it didn't check the task map
to find the lowest timeout until after the new task was inserted.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@781630
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Thu, 4 Jun 2009 00:32:54 +0000 (00:32 +0000)]
THRIFT-466. cpp: Make the concurrency library test more thorough
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@781629
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Thu, 4 Jun 2009 00:32:50 +0000 (00:32 +0000)]
THRIFT-465. cpp: Fix some STL misuse in the concurrency library test
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@781628
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Thu, 4 Jun 2009 00:32:47 +0000 (00:32 +0000)]
THRIFT-464. cpp: Fix some STL misuse in the concurrency library
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@781627
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Thu, 4 Jun 2009 00:10:50 +0000 (00:10 +0000)]
THRIFT-497. cpp: Fix TSocket::read and peek on Max OS
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@781626
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Fri, 29 May 2009 20:18:58 +0000 (20:18 +0000)]
THRIFT-511. rb: Better performing hash method for generated structs
This patch uses a hash function that takes into account the hashes of struct elements, instead of just returning 0. This make hashes of Thrift structs O(1) instead of O(n).
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@780094
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Fri, 29 May 2009 20:15:02 +0000 (20:15 +0000)]
THRIFT-489. java: Java enum validation only validates explicitly assigned values
This patch puts all of an enum's values into the valid values set, fixing validation.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@780091
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Fri, 29 May 2009 20:11:27 +0000 (20:11 +0000)]
THRIFT-513. rb: spec test files broken, rake searching for misnamed files
This patch causes the right files to be required and cleans up a few odd or redundant requires that were in the specs.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@780090
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Fri, 22 May 2009 20:17:04 +0000 (20:17 +0000)]
THRIFT-516. rb: If TFramedTransport reads a negative frame size, throw a TTransportException descendant instead of the default NegativeArraySizeException
Throw a TTransportException when the frame size read from the wire is < 0.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@777690
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Fri, 22 May 2009 19:52:06 +0000 (19:52 +0000)]
THRIFT-373. Get some missing files into the release tarballs
- Added some stuff to EXTRA_DIST.
- Added some non-compiled sources to a C++ test.
- Made lib/perl/test a SUBDIR of lib/perl.
The last is a revert of r766558, but I moved the "Types.pm" rules in
lib/perl/test/Makefile.am to the check-local target, so it should still
work as expected (per THRIFT-461).
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@777681
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Fri, 22 May 2009 19:52:02 +0000 (19:52 +0000)]
Consolidate lib/hs/.gitignore into the top-level .gitignore
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@777680
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Fri, 22 May 2009 19:50:33 +0000 (19:50 +0000)]
THRIFT-450. java: Propagate CLASSPATH from ./configure to make and ant
- Put "AC_SUBST(CLASSPATH)" configure.ac so the CLASSPATH used to run
./configure is passed in to make.
- Put "export CLASSPATH" in lib/java/Makefile.am so that the CLASSPATH
passed to make is passed to ant.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@777678
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Fri, 22 May 2009 19:50:32 +0000 (19:50 +0000)]
THRIFT-450. java: Respect the global classpath during testing
I'm not sure why, but "ant test" under lib/java doesn't pass the
global classpath to the test programs. (This is weird because
compile-test does.) This change manually extracts the CLASSPATH
environment variable and adds it to the test classpath.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@777677
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Fri, 22 May 2009 19:50:29 +0000 (19:50 +0000)]
THRIFT-450. java: Check for Apache Commons Lang also
I forgot that we use the hashcode option when building the tests.
We therefore need to check for HashCodeBuilder before disabling Ivy.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@777676
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Thu, 21 May 2009 02:28:36 +0000 (02:28 +0000)]
cpp: Fix compilation on OpenBSD by including sys/types.h
socket(2) says that this might be required on some Unixes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@776931
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Thu, 21 May 2009 02:28:30 +0000 (02:28 +0000)]
cpp: Resolve an ambiguous overload in some tests
sqrt is defined for floats and long doubles in addition to doubles.
Add a cast (from int) to specify which one we want.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@776930
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Thu, 21 May 2009 02:28:27 +0000 (02:28 +0000)]
cpp: Add some missing includes to fix OpenBSD compilation
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@776929
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Thu, 21 May 2009 02:28:23 +0000 (02:28 +0000)]
cpp: Fix an OpenBSD compilation bug by moving a typedef
The typedef was aliasing a private type, which is apparently illegal.
Moving it into the class definition fixed it.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@776928
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Thu, 21 May 2009 02:28:19 +0000 (02:28 +0000)]
cpp: Deal with systems without sched_get_priority_{min,max} (OpenBSD)
Also make a few tweaks to configure.ac:
- Check for clock_gettime in librt since it seems to be more
widely available.
- Make it clear which AC_CHECK_FUNCS are optional.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@776927
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Thu, 21 May 2009 02:28:16 +0000 (02:28 +0000)]
cpp: Deal with systems without AI_ADDRCONFIG (OpenBSD)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@776926
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Thu, 21 May 2009 02:28:14 +0000 (02:28 +0000)]
cpp: Fix an OpenBSD compilation error that appears to be a real bug
The (Linux) man page for ctime_r states pretty clearly that
the buffer it uses must have space for at least 26 characters.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@776925
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Wed, 20 May 2009 18:22:19 +0000 (18:22 +0000)]
THRIFT-501. rb: File.dirname(...) requires cause warnings in some scenarios
This patch removes the File.dirname usage. Instead, you should put the directory that contains your _types.rb into the load path.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@776800
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Tue, 12 May 2009 23:16:55 +0000 (23:16 +0000)]
THRIFT-450. Don't use Ivy if log4j is already available
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@774132
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Tue, 12 May 2009 23:16:53 +0000 (23:16 +0000)]
Extend ax_javac_and_java.m4 to test for specific classes
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@774130
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Tue, 12 May 2009 16:53:23 +0000 (16:53 +0000)]
THRIFT-349. php: Accelerated binary protocol serialization segementation fault
Check to make sure that the object being serialized has a valid struct spec, error otherwise.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@773976
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Tue, 12 May 2009 16:44:52 +0000 (16:44 +0000)]
THRIFT-499. php: Thrift_protocol PHP extension does not handle signedness correctly
Cast all the number types to signed values before making PHP longs out of them.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@773974
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Tue, 12 May 2009 02:17:43 +0000 (02:17 +0000)]
THRIFT-495. python: Raise a TTransportException if TSocket is not open
Previously, TSocket.write would raise an AttributeError if the transport
had not been opened. A TTransportException with the code set to
NOT_OPEN is more appropriate. The cost of the check should be
negligible, since TSocket.write is already fairly expensive (it does a
system call).
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@773762
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Mon, 11 May 2009 18:09:24 +0000 (18:09 +0000)]
THRIFT-493. java: Stopping TNonblockingServer when it hasn't been starting results in an exception
Check if the server is null before trying to stop.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@773632
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Sun, 10 May 2009 05:14:44 +0000 (05:14 +0000)]
THRIFT-494. python: Update meta-information in setup.py
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@773306
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Thu, 7 May 2009 00:41:18 +0000 (00:41 +0000)]
THRIFT-490. Clarify the comment for the Guard macro
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@772478
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 6 May 2009 22:00:33 +0000 (22:00 +0000)]
THRIFT-483. Use --copy for libtoolize
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@772440
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Wed, 6 May 2009 17:22:11 +0000 (17:22 +0000)]
THRIFT-482. java: build.xml does not specify a target version for compiled java classes
This patch updates the build file to target java 1.5.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@772373
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Tue, 5 May 2009 18:59:49 +0000 (18:59 +0000)]
THRIFT-486. rb: ruby tutorial needs updated require statements
Fixed.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@771969
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Tue, 5 May 2009 18:50:26 +0000 (18:50 +0000)]
THRIFT-485. rb: Generated validate methods that reference external thrift files' types are not referenced correctly
This patch fully qualifies type names in two spots.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@771964
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Tue, 5 May 2009 00:53:01 +0000 (00:53 +0000)]
Preparing for 0.1.0 RC1
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@771515
13f79535-47bb-0310-9956-
ffa450edef68
Andrew McGeachie [Tue, 5 May 2009 00:44:48 +0000 (00:44 +0000)]
THRIFT-60. Make generated constants object extend NSObject.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@771514
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Tue, 5 May 2009 00:43:59 +0000 (00:43 +0000)]
Add version number to Rakefile, update generated manifest (via rake)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@771513
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Mon, 4 May 2009 22:00:47 +0000 (22:00 +0000)]
Adding incubator disclaimer
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@771464
13f79535-47bb-0310-9956-
ffa450edef68
Andrew McGeachie [Mon, 4 May 2009 21:17:55 +0000 (21:17 +0000)]
THRIFT-478. Release our input and output stream instance variables when we're dealloc to avoid a memory leak.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@771447
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 29 Apr 2009 23:35:01 +0000 (23:35 +0000)]
THRIFT-471. python: Generated exceptions should implement __str__
This makes Python stack dumps properly show the exception content.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@770002
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 29 Apr 2009 23:20:56 +0000 (23:20 +0000)]
THRIFT-453. java: By default, use Ivy to download Java dependencies
build.xml will now download Apache Ivy into the build tree. Ivy will
then be used to download the other Java dependencies: log4j and Apache
Commons Lang. This achieves the goal of allowing the Java library to be
built from a clean checkout, without requiring users to manually obtain
dependencies or checking external binaries into the source tree.
The Ivy behavior (except for a few mkdir calls) can be inhibited by
passing -Dnoivy= on the ant command line (or in a property file). In
this case, log4j must be available in the user's CLASSPATH.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@769995
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 29 Apr 2009 04:54:24 +0000 (04:54 +0000)]
THRIFT-470. fb303: Use a namespace in Perl gen-code
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@769653
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Mon, 27 Apr 2009 19:36:50 +0000 (19:36 +0000)]
THRIFT-463. python: Fix thrift_spec ordering bug from r760201
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@769123
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Mon, 27 Apr 2009 19:25:23 +0000 (19:25 +0000)]
THRIFT-467. csharp: Fix compilation on Debian Sid
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@769114
13f79535-47bb-0310-9956-
ffa450edef68
T Jake Luciani [Tue, 21 Apr 2009 00:50:11 +0000 (00:50 +0000)]
THRIFT-460: fixes constant structs
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@766933
13f79535-47bb-0310-9956-
ffa450edef68
T Jake Luciani [Mon, 20 Apr 2009 01:38:42 +0000 (01:38 +0000)]
THRIFT-461: moves thrift compiler call to test suite
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@766558
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Wed, 15 Apr 2009 17:37:52 +0000 (17:37 +0000)]
Add makefile stuff to svn:ignore
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@765279
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Mon, 13 Apr 2009 18:12:07 +0000 (18:12 +0000)]
THRIFT-451. rb: ruby structs use lowercase enum while modules are capitalized
This patch updates the full_type_name call so it capitalizes a type before it's appended to the module prefix.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@764549
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Mon, 13 Apr 2009 17:48:23 +0000 (17:48 +0000)]
THRIFT-445. rb: client and processor do not inherit from the proper namespace scope
This patch adds namespace support to a client and processor extended from an included thrift def with its own namespace.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@764540
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Fri, 10 Apr 2009 21:51:00 +0000 (21:51 +0000)]
THRIFT-236. Structs should be serialized in a consistent order
2nd try at this issue. This time, we will use numeric field order ONLY for the serialization portion, instead of globally. This should make it much easier to produce the correctly ordered output in all cases.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@764072
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Fri, 10 Apr 2009 17:20:51 +0000 (17:20 +0000)]
THRIFT-416. java: java.util.logging eats exceptions without warning
This patch switches the logging framework to log4j and updates all the server implementations accordingly.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@763981
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Thu, 9 Apr 2009 20:02:56 +0000 (20:02 +0000)]
THRIFT-445. Revert r760201 "THRIFT-236. Sort fields in id order during parsing"
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@763786
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 8 Apr 2009 20:46:13 +0000 (20:46 +0000)]
Remove "Library" from CHANGES because the compiler is also affected
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@763384
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Wed, 8 Apr 2009 00:19:37 +0000 (00:19 +0000)]
THRIFT-387. Add appropriate Apache header to all code files
This hits all the documentation and some misc code files that have avoided the license up to this point.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@763048
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Tue, 7 Apr 2009 23:45:15 +0000 (23:45 +0000)]
THRIFT-444. rb: THRIFT-356 broke compact protocol spec
This patch cleans up the spec, removing some unncessary code.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@763043
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Tue, 7 Apr 2009 23:44:01 +0000 (23:44 +0000)]
Add some more info to CHANGES and re-sort it
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@763040
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Tue, 7 Apr 2009 23:38:39 +0000 (23:38 +0000)]
smalltalk: Fix TBinaryProtocol readString for empty strings
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@763037
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Tue, 7 Apr 2009 23:29:42 +0000 (23:29 +0000)]
THRIFT-407. hs: Refactor and improve Haskell-related code
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@763031
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Tue, 7 Apr 2009 23:27:01 +0000 (23:27 +0000)]
THRIFT-390. hs: Cabalize Haskell library code
Missed some files that needed to be added.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@763030
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Tue, 7 Apr 2009 23:23:39 +0000 (23:23 +0000)]
THRIFT-390. hs: Cabalize Haskell library code
Use Cabal to build and install the Haskell library code.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@763029
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Tue, 7 Apr 2009 22:47:34 +0000 (22:47 +0000)]
THRIFT-431. rb: Capitalize namespace values
Author: Michael Stockton
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@763022
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Tue, 7 Apr 2009 22:23:40 +0000 (22:23 +0000)]
THRIFT-437. rb: fix benchmarking tools to require proper file names
A few scripts in benchmark/ and script/ were using old-style require statments.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@763003
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Tue, 7 Apr 2009 20:51:48 +0000 (20:51 +0000)]
THRIFT-356. Improve CompactProtocolTestStruct
- Remove the default values from CompactProtocolTestStruct
- Add a const CompactProtocolTestStruct that contains those values
This has a short-term benefit and a long-term benefit.
The short-term benefit is that it removes the list-as-map-key
(etc.) values from the "types" generated file and puts it into
the "constants" generated file. This gets them out of the way
of the Python tests, so they pass again.
The long term benefit is that is strengthens the Java TCompactProtocol
test. Before, it was reading the "full" CompactProtocolTestStruct into
a CompactProtocolTestStruct that was just constructed, but the latter
was already almost equal to the former. This change makes it much
easier to create an empty CompactProtocolTestStruct to read the serialized
data into.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@762957
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Tue, 7 Apr 2009 20:51:37 +0000 (20:51 +0000)]
THRIFT-427. java: Fix print_const_value
Simplify it a bit in the process, because the beans-style setters
are produced even in non-beans mode, and they handle isset internally.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@762956
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Tue, 7 Apr 2009 20:03:09 +0000 (20:03 +0000)]
THRIFT-421. rb: Fix tests broken by original patch
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@762928
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Tue, 7 Apr 2009 19:12:01 +0000 (19:12 +0000)]
Add basic Changelog
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@762908
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Tue, 7 Apr 2009 19:09:28 +0000 (19:09 +0000)]
Thrift-421. rb: Underscore output file names and require file statments
Breaks compatiblity
Author: Michael Stockton
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@762907
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Tue, 7 Apr 2009 16:35:49 +0000 (16:35 +0000)]
THRIFT-433. rb: 'rake spec' sort of fails
This patch allows the process to exit cleanly. Yay!
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@762840
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Tue, 7 Apr 2009 16:31:04 +0000 (16:31 +0000)]
THRIFT-175. Specs in Ruby library should be run during make check
This patch makes 'make check' run 'rake spec' in the appropriate scenarios. There is still another bug that will break the build though.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@762838
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Tue, 7 Apr 2009 04:40:50 +0000 (04:40 +0000)]
THRIFT-422. rb: scope all references to the Thrift module
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@762620
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Tue, 7 Apr 2009 04:37:28 +0000 (04:37 +0000)]
THRIFT-430. rb: ruby tutorials and ruby tests require deprecated files and class names
This patch cleans all this up.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@762618
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Sun, 5 Apr 2009 06:19:51 +0000 (06:19 +0000)]
Flush output at the end of thrift_dump
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@762043
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Sat, 4 Apr 2009 00:58:03 +0000 (00:58 +0000)]
THRIFT-276. rb: Ruby libraries should have one class per file
This monster of a patch moves all the classes into their own files and specs as appropriate. Additionally, it concentrates all the requires into thrift.rb, removing the need to require any other file. (Changes were made to the compiler to reflect this reduced requirement.)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@761849
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Fri, 3 Apr 2009 19:07:19 +0000 (19:07 +0000)]
THRIFT-426. cpp: Fix include path under test/cpp
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@761763
13f79535-47bb-0310-9956-
ffa450edef68