common/thrift.git
14 years agoTHRIFT-939. java: optional binary fields throw NPE on default byte[] getters
Bryan Duxbury [Thu, 30 Sep 2010 19:37:01 +0000 (19:37 +0000)] 
THRIFT-939. java:  optional binary fields throw NPE on default byte[] getters

This patch deals with null ByteBuffers correctly.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/branches/0.5.x@1003215 13f79535-47bb-0310-9956-ffa450edef68

14 years agofix version and rubygem version
Bryan Duxbury [Tue, 28 Sep 2010 17:38:19 +0000 (17:38 +0000)] 
fix version and rubygem version

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/branches/0.5.x@1002285 13f79535-47bb-0310-9956-ffa450edef68

14 years agoBranching trunk to 0.5.x to prepare for release.
Bryan Duxbury [Tue, 28 Sep 2010 16:06:42 +0000 (16:06 +0000)] 
Branching trunk to 0.5.x to prepare for release.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/branches/0.5.x@1002237 13f79535-47bb-0310-9956-ffa450edef68

14 years agoupdate the CHANGES file
Bryan Duxbury [Tue, 28 Sep 2010 15:06:38 +0000 (15:06 +0000)] 
update the CHANGES file

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1002207 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-900. cpp: Unix domain socket
Bryan Duxbury [Tue, 28 Sep 2010 14:36:07 +0000 (14:36 +0000)] 
THRIFT-900. cpp: Unix domain socket

This patch adds a new Unix Socket transport.

Patch: Roger Meier

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1002179 13f79535-47bb-0310-9956-ffa450edef68

14 years agocontrib/fb303: use pure_enums in C++ for compatibility
David Reiss [Tue, 28 Sep 2010 03:30:17 +0000 (03:30 +0000)] 
contrib/fb303: use pure_enums in C++ for compatibility

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1002000 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-912. java: Fix some bugs in SASL implementation, update protocol spec slightly
Todd Lipcon [Tue, 28 Sep 2010 00:11:01 +0000 (00:11 +0000)] 
THRIFT-912. java: Fix some bugs in SASL implementation, update protocol spec slightly

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001973 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-931. java: Add log4j.properties missing from previous commit
Todd Lipcon [Tue, 28 Sep 2010 00:02:53 +0000 (00:02 +0000)] 
THRIFT-931. java: Add log4j.properties missing from previous commit

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001971 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-890. java: Add README missing from previous commit
Todd Lipcon [Tue, 28 Sep 2010 00:01:31 +0000 (00:01 +0000)] 
THRIFT-890. java: Add README missing from previous commit

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001970 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-931. java: Use log4j for Java tests
Todd Lipcon [Mon, 27 Sep 2010 23:51:22 +0000 (23:51 +0000)] 
THRIFT-931. java: Use log4j for Java tests

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001967 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-787. compiler: Enums are not read correctly
Bryan Duxbury [Mon, 27 Sep 2010 23:37:44 +0000 (23:37 +0000)] 
THRIFT-787. compiler: Enums are not read correctly

This patch removes unnecessary enum value resolution code from all the individual generators. It's been unnecessary since forever ago when we made the compiler force the global resolution of values.

Patch: Christian Lavoie

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001966 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-918 : better haskell tests
Anthony F. Molinaro [Mon, 27 Sep 2010 19:27:40 +0000 (19:27 +0000)] 
THRIFT-918 : better haskell tests

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001883 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-890. java: Fix tutorial to build and run in trunk
Todd Lipcon [Mon, 27 Sep 2010 18:26:07 +0000 (18:26 +0000)] 
THRIFT-890. java: Fix tutorial to build and run in trunk

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001856 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-919 : updated haskell README
Anthony F. Molinaro [Mon, 27 Sep 2010 17:33:47 +0000 (17:33 +0000)] 
THRIFT-919 : updated haskell README

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001830 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-335. python: Initial implementation of TCompactProtocol
David Reiss [Mon, 27 Sep 2010 17:28:15 +0000 (17:28 +0000)] 
THRIFT-335. python: Initial implementation of TCompactProtocol

Seems to work.  No interoperability testing with other languages yet.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001827 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-920. cpp: C++ Test and Tutorial does not compile anymore due to the change...
Bryan Duxbury [Mon, 27 Sep 2010 17:26:02 +0000 (17:26 +0000)] 
THRIFT-920. cpp: C++ Test and Tutorial does not compile anymore due to the change within Enum handling

Patch: Roger Meier and Christian Lavoie

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001826 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-905: hook haskell into autoconf
Anthony F. Molinaro [Mon, 27 Sep 2010 17:22:17 +0000 (17:22 +0000)] 
THRIFT-905: hook haskell into autoconf

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001823 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-917. java: THsHaServer should not accept an ExecutorService without catching...
Bryan Duxbury [Mon, 27 Sep 2010 17:12:36 +0000 (17:12 +0000)] 
THRIFT-917. java: THsHaServer should not accept an ExecutorService without catching RejectedExecutionException

This patch catches RejectedExecutionException from requestInvoke and closes the client connection when that occurs.

Patch: Ed Ceaser

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001820 13f79535-47bb-0310-9956-ffa450edef68

14 years agomake check wasn't working because python namespace was incorrect
Anthony F. Molinaro [Mon, 27 Sep 2010 04:43:39 +0000 (04:43 +0000)] 
make check wasn't working because python namespace was incorrect

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001590 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-743: seems to compile and doesn't break other tests, so seems fine for now
Anthony F. Molinaro [Sun, 26 Sep 2010 04:25:36 +0000 (04:25 +0000)] 
THRIFT-743: seems to compile and doesn't break other tests, so seems fine for now

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001353 13f79535-47bb-0310-9956-ffa450edef68

14 years agoignore generated artifacts
Anthony F. Molinaro [Sun, 26 Sep 2010 04:22:24 +0000 (04:22 +0000)] 
ignore generated artifacts

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001352 13f79535-47bb-0310-9956-ffa450edef68

14 years agoignore generated directory
Anthony F. Molinaro [Sun, 26 Sep 2010 04:21:08 +0000 (04:21 +0000)] 
ignore generated directory

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001351 13f79535-47bb-0310-9956-ffa450edef68

14 years agoignore test artifacts
Anthony F. Molinaro [Sun, 26 Sep 2010 04:20:23 +0000 (04:20 +0000)] 
ignore test artifacts

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001350 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-881. csharp: add csharp to the tutorial
Bryan Duxbury [Fri, 24 Sep 2010 16:47:59 +0000 (16:47 +0000)] 
THRIFT-881. csharp: add csharp to the tutorial

This patch adds a tutorial for CSharp. It also moves the 'test' client and server into the tutorial, because they were not being used by the tests.

Patch: Roger Meier

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1000953 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-914 : haskell bindings compile easier
Anthony F. Molinaro [Thu, 23 Sep 2010 22:28:09 +0000 (22:28 +0000)] 
THRIFT-914 : haskell bindings compile easier

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1000653 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-911: fix for trailing commas in sets, lists, maps, consts
T Jake Luciani [Wed, 22 Sep 2010 02:33:06 +0000 (02:33 +0000)] 
THRIFT-911: fix for trailing commas in sets, lists, maps, consts

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@999728 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-906. hs: Improve type mappings
Bryan Duxbury [Wed, 22 Sep 2010 00:48:56 +0000 (00:48 +0000)] 
THRIFT-906. hs: Improve type mappings

This patch fixes the type mappings to be more sane. It *will* break existing code, but the breakages should be well worth it.

Patch: Christian Lavoie

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@999700 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-910. Update .gitignore
David Reiss [Tue, 21 Sep 2010 18:35:43 +0000 (18:35 +0000)] 
THRIFT-910. Update .gitignore

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@999526 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-907. java: update fb303 to compile on trunk
Todd Lipcon [Tue, 21 Sep 2010 18:01:43 +0000 (18:01 +0000)] 
THRIFT-907. java: update fb303 to compile on trunk

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@999520 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-909. rb: allow block argument to struct constructor
Bryan Duxbury [Tue, 21 Sep 2010 16:30:58 +0000 (16:30 +0000)] 
THRIFT-909. rb: allow block argument to struct constructor

This patch allows the user to pass a block to generated structs' constructors. The block will receive and instance of the new object.

Patch: Michael Stockton

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@999487 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-880. javame: JavaME code generator and runtime library
Bryan Duxbury [Mon, 20 Sep 2010 17:49:09 +0000 (17:49 +0000)] 
THRIFT-880. javame: JavaME code generator and runtime library

This patch adds a new generator and library that produces code suitable for use in JavaME environments.

Patch: David Engberg

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@999022 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-901. hs: Allow the bindings to compile without -fglasgow-exts and with -Wall...
Bryan Duxbury [Mon, 20 Sep 2010 17:41:40 +0000 (17:41 +0000)] 
THRIFT-901. hs: Allow the bindings to compile without -fglasgow-exts and with -Wall -Werror

Forgot a small chunk of the previous patch.

Patch: Christian Lavoie

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@999019 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-901. hs: Allow the bindings to compile without -fglasgow-exts and with -Wall...
Bryan Duxbury [Mon, 20 Sep 2010 15:21:37 +0000 (15:21 +0000)] 
THRIFT-901. hs: Allow the bindings to compile without -fglasgow-exts and with -Wall -Werror

This patch makes the bindings compile with pedantic warning levels, and individually declares each required language extension.

Patch: Christian Lavoie

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@998955 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-323. csharp: TJSONProtocol
Bryan Duxbury [Sat, 18 Sep 2010 20:51:25 +0000 (20:51 +0000)] 
THRIFT-323. csharp: TJSONProtocol

This patch adds support for the JSON Protocol to the csharp library.

Patch: Roger Meier

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@998539 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-885: fix string encoding
T Jake Luciani [Fri, 17 Sep 2010 23:38:25 +0000 (23:38 +0000)] 
THRIFT-885: fix string encoding

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@998371 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-899. rb: Ruby read timeouts can sometimes be 2x what they should be
Bryan Duxbury [Fri, 17 Sep 2010 20:17:21 +0000 (20:17 +0000)] 
THRIFT-899. rb: Ruby read timeouts can sometimes be 2x what they should be

This patch makes sure that we don't wait longer than necessary for timeouts.

Patch: Ryan King

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@998303 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-882. java: deep copy of binary fields does not copy ByteBuffer characteristics...
Bryan Duxbury [Fri, 17 Sep 2010 19:27:36 +0000 (19:27 +0000)] 
THRIFT-882. java: deep copy of binary fields does not copy ByteBuffer characteristics (arrayOffset, position)

This patch ensures that binary fields are copied correctly.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@998275 13f79535-47bb-0310-9956-ffa450edef68

14 years agoFix enum value lookups in C++
David Reiss [Mon, 13 Sep 2010 17:32:14 +0000 (17:32 +0000)] 
Fix enum value lookups in C++

The recent enum change was causing enums to break if used as constant
values by the C++ generator.  The problem was that we were searching for
the fully-qualified constant name (enum_name.VALUE_NAME) in the enum
values.  This didn't affect Java because it just uses symbolic names in
the generated code.  Fix it by grabbing the base name before doing the
search.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996610 13f79535-47bb-0310-9956-ffa450edef68

14 years agoDon't segfault if t_enum::get_constant_by_name fails
David Reiss [Mon, 13 Sep 2010 17:32:13 +0000 (17:32 +0000)] 
Don't segfault if t_enum::get_constant_by_name fails

The recent enum change was causing t_enum::get_constant_by_name to fail
in t_const_value::get_integer.  This was causing a difficult-to-debug
segfault.  Check for failure and throw an exeception.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996609 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-870. java: Java constants don't get Javadoc comments
Bryan Duxbury [Mon, 13 Sep 2010 16:28:53 +0000 (16:28 +0000)] 
THRIFT-870. java: Java constants don't get Javadoc comments

Fix a trivial oversight.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996592 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-894. java: Make default accessors for binary fields return byte[]; provide...
Bryan Duxbury [Mon, 13 Sep 2010 15:42:36 +0000 (15:42 +0000)] 
THRIFT-894. java: Make default accessors for binary fields return byte[]; provide new accessors to get ByteBuffer version

This patch causes the underlying ByteBuffer that backs a binary field to be hidden behind a default accessor that provides a byte[] interface. This should allow users who skipped 0.4 to update their generated code without breaking any of their other code. A new accessor has been added that allows a way down to the underlying ByteBuffer for those experts who want to take advantage.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996579 13f79535-47bb-0310-9956-ffa450edef68

14 years agojava: tiny improvement to async client manager test, for real this time
Bryan Duxbury [Sun, 12 Sep 2010 15:31:50 +0000 (15:31 +0000)] 
java: tiny improvement to async client manager test, for real this time

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996329 13f79535-47bb-0310-9956-ffa450edef68

14 years agojava: tiny improvement to async client manager test
Bryan Duxbury [Sun, 12 Sep 2010 15:30:06 +0000 (15:30 +0000)] 
java: tiny improvement to async client manager test

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996328 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-897. compiler: Don't allow unqualified enum constant access
Bryan Duxbury [Sun, 12 Sep 2010 15:29:38 +0000 (15:29 +0000)] 
THRIFT-897. compiler: Don't allow unqualified enum constant access

Fix some confusion in the java generator about adding the class name.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996327 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-897. compiler: Don't allow unqualified enum constant references
Bryan Duxbury [Sun, 12 Sep 2010 15:22:49 +0000 (15:22 +0000)] 
THRIFT-897. compiler: Don't allow unqualified enum constant references

Missed a spot.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996326 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-897. compiler: Don't allow unqualified enum constant references
Bryan Duxbury [Sun, 12 Sep 2010 15:22:21 +0000 (15:22 +0000)] 
THRIFT-897. compiler: Don't allow unqualified enum constant references

Missed a spot.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996325 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-897. compiler: Don't allow unqualified constant access to enum values
Bryan Duxbury [Sun, 12 Sep 2010 14:38:36 +0000 (14:38 +0000)] 
THRIFT-897. compiler: Don't allow unqualified constant access to enum values

This patch makes it illegal to refer to enum values by just their names in the IDL. Now, you must also provide the enum type's name as well.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996320 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-895. cpp: By default, generate enums as class-scoped enums
David Reiss [Fri, 10 Sep 2010 23:00:40 +0000 (23:00 +0000)] 
THRIFT-895. cpp: By default, generate enums as class-scoped enums

Most of the other Thrift languages either have enum values that are
scoped to the type or emulate enums in that way.  Now C++ does the same
by default.  "enum Foo" in a .thrift file will be generated as Foo::type
so the values can be called Foo::value1, etc.  The "pure_enums" compiler
option restores the old behavior.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996015 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-896. java: TNonblockingSocket.isOpen() returns true even after close()
Bryan Duxbury [Fri, 10 Sep 2010 19:08:00 +0000 (19:08 +0000)] 
THRIFT-896. java: TNonblockingSocket.isOpen() returns true even after close()

This patch makes TNonblockingSocket.isOpen() have more expected behavior.

Patch: Eric Jensen

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@995939 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-544. erl: multiple enums with the same key generate invalid code
Bryan Duxbury [Fri, 10 Sep 2010 18:49:53 +0000 (18:49 +0000)] 
THRIFT-544. erl: multiple enums with the same key generate invalid code

This adds the enum name to the generated constants to avoid collisions.

Patch: Ben Taitelbaum

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@995924 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-250. java: ExecutorService as a constructor parameter for TServer
Bryan Duxbury [Fri, 10 Sep 2010 16:16:01 +0000 (16:16 +0000)] 
THRIFT-250. java: ExecutorService as a constructor parameter for TServer

This patch adds a new constructor that accepts an ExecutorService.

Patch: Ed Ceaser

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@995847 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-888. java: async client should also have nonblocking connect
Bryan Duxbury [Wed, 8 Sep 2010 21:47:45 +0000 (21:47 +0000)] 
THRIFT-888. java: async client should also have nonblocking connect

This patch adds optional nonblocking connect behavior.

Patch: Eric Jensen

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@995262 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-876. java: Add SASL support
Bryan Duxbury [Wed, 8 Sep 2010 00:06:35 +0000 (00:06 +0000)] 
THRIFT-876. java: Add SASL support

This patch adds support for a SASL-secured transport to the Java library. In its current form, it only works for the blocking-IO servers.

Patch: Aaron T Meyers

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@993563 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-698 - fix .app file, remove unused parts of build system, updated LICENSE...
Anthony F. Molinaro [Tue, 7 Sep 2010 03:35:30 +0000 (03:35 +0000)] 
THRIFT-698 - fix .app file, remove unused parts of build system, updated LICENSE to reflect changes

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@993207 13f79535-47bb-0310-9956-ffa450edef68

14 years agosvn ignore and remove php artifacts left by phpize in bootstrap.sh
Anthony F. Molinaro [Tue, 7 Sep 2010 03:25:02 +0000 (03:25 +0000)] 
svn ignore and remove php artifacts left by phpize in bootstrap.sh

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@993205 13f79535-47bb-0310-9956-ffa450edef68

14 years agoFix to the catch-all namespace commit
Bryan Duxbury [Fri, 3 Sep 2010 20:36:02 +0000 (20:36 +0000)] 
Fix to the catch-all namespace commit

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@992458 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-856. cpp: Building cpp library fails on OS X with malloc and free not being...
Bryan Duxbury [Thu, 2 Sep 2010 16:42:18 +0000 (16:42 +0000)] 
THRIFT-856. cpp: Building cpp library fails on OS X with malloc and free not being declared in scope

This patch adds include which seems to fix the problem for some people.

Patch: James Clarke

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@992013 13f79535-47bb-0310-9956-ffa450edef68

14 years agoAllow "*" as a catch-all namespace.
David Reiss [Thu, 2 Sep 2010 16:41:45 +0000 (16:41 +0000)] 
Allow "*" as a catch-all namespace.

In an IDL file, you can can now declare "namespace * foo",
which will apply to any language not explicitly specified.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@992012 13f79535-47bb-0310-9956-ffa450edef68

14 years agoadd some generatd artifacts from lib/cpp/test and lib/php/src/ext/thrift_protocol...
Bryan Duxbury [Thu, 2 Sep 2010 16:33:42 +0000 (16:33 +0000)] 
add some generatd artifacts from lib/cpp/test and lib/php/src/ext/thrift_protocol to svn:ignore

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@992008 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-257. py: Support validation of required fields
Bryan Duxbury [Thu, 2 Sep 2010 15:37:19 +0000 (15:37 +0000)] 
THRIFT-257. py: Support validation of required fields

Patch: Esteve Fernandez

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991987 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-666. python: Allow THttpServer's responses to be overridden
David Reiss [Thu, 2 Sep 2010 15:36:03 +0000 (15:36 +0000)] 
THRIFT-666. python: Allow THttpServer's responses to be overridden

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991986 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-596. python: Make the TBufferedTransport read buffer size configurable
David Reiss [Thu, 2 Sep 2010 15:36:00 +0000 (15:36 +0000)] 
THRIFT-596. python: Make the TBufferedTransport read buffer size configurable

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991985 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-798. cpp: Reduce resource leakage by TNonblockingServer destructor
David Reiss [Thu, 2 Sep 2010 15:26:28 +0000 (15:26 +0000)] 
THRIFT-798. cpp: Reduce resource leakage by TNonblockingServer destructor

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991980 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-567. cpp: Can't immediately stop a TSimpleServer thread that is idle
Bryan Duxbury [Thu, 2 Sep 2010 15:16:56 +0000 (15:16 +0000)] 
THRIFT-567. cpp: Can't immediately stop a TSimpleServer thread that is idle

This interrupts the server in addition to setting the stop flag.

Patch: Rush Manbert

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991974 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-597. py: Python THttpServer performance improvements
Bryan Duxbury [Thu, 2 Sep 2010 15:14:27 +0000 (15:14 +0000)] 
THRIFT-597. py: Python THttpServer performance improvements

This enables buffered I/O and ThreadingMixin.

Patch: David Reiss

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991971 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-598. py: Allow Python's threading servers to use daemon threads
Bryan Duxbury [Thu, 2 Sep 2010 15:12:06 +0000 (15:12 +0000)] 
THRIFT-598. py: Allow Python's threading servers to use daemon threads

Patch: David Reiss

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991969 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-629. cocoa: Unused Field In TSocketServer Appears To Break iPhone Build
Bryan Duxbury [Thu, 2 Sep 2010 15:02:06 +0000 (15:02 +0000)] 
THRIFT-629. cocoa: Unused Field In TSocketServer Appears To Break iPhone Build

Remove the unused field.

Patch: Jon S Akhtar

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991962 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-634. csharp: C# Compiler Generates Incorrect Code For Fields which begin with...
Bryan Duxbury [Thu, 2 Sep 2010 14:58:51 +0000 (14:58 +0000)] 
THRIFT-634. csharp: C# Compiler Generates Incorrect Code For Fields which begin with an uppercase letter

Added a '_' to the backing field, and changed all the field references to refer to the property instead.

Patch: Jon S Akhtar

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991960 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-673. py: Generated Python code has whitespace issues
Bryan Duxbury [Thu, 2 Sep 2010 14:20:01 +0000 (14:20 +0000)] 
THRIFT-673. py: Generated Python code has whitespace issues

This patch trims several forms of trailing whitespace.

Patch: Ian Eure

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991945 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-875 : missing dist file
Anthony F. Molinaro [Thu, 2 Sep 2010 05:09:05 +0000 (05:09 +0000)] 
THRIFT-875 : missing dist file

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991813 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-721. py: THttpClient ignores url parameters
Bryan Duxbury [Thu, 2 Sep 2010 01:00:19 +0000 (01:00 +0000)] 
THRIFT-721. py: THttpClient ignores url parameters

Respect query string in THttpClient and generated remotes. Also, add an error message on unknown methods.

Patch: Thomas Kho

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991786 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-756. cpp: Exposing TSocket(int) constructor to public
Bryan Duxbury [Thu, 2 Sep 2010 00:56:53 +0000 (00:56 +0000)] 
THRIFT-756. cpp: Exposing TSocket(int) constructor to public

This patch changes the raw socket handle constructor from protected to public.

Patch: Rajat Goel

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991785 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-758. perl: incorrect deference in exception handling
Bryan Duxbury [Thu, 2 Sep 2010 00:52:46 +0000 (00:52 +0000)] 
THRIFT-758. perl: incorrect deference in exception handling

Patch: Yann Kerherve

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991784 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-805. cocoa: Don't generate process_XXXX methods for oneway methods
Bryan Duxbury [Thu, 2 Sep 2010 00:43:16 +0000 (00:43 +0000)] 
THRIFT-805. cocoa: Don't generate process_XXXX methods for oneway methods

Patch: Brad Taylor

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991783 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-824. py: TApplicationException.__str__() refers to class constants as globals
Bryan Duxbury [Thu, 2 Sep 2010 00:36:18 +0000 (00:36 +0000)] 
THRIFT-824. py: TApplicationException.__str__() refers to class constants as globals

Refer to constants via 'self'.

Patch: Peter Schuller

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991781 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-838. cocoa: Generated Cocoa classes have useless @dynamic declarations
Bryan Duxbury [Thu, 2 Sep 2010 00:29:08 +0000 (00:29 +0000)] 
THRIFT-838. cocoa: Generated Cocoa classes have useless @dynamic declarations

This patch removes the @dynamic properties.

Patch: Kevin Ballard

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991779 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-840. perl: Perl protocol handler could be more robust against unrecognised...
Bryan Duxbury [Thu, 2 Sep 2010 00:24:50 +0000 (00:24 +0000)] 
THRIFT-840. perl: Perl protocol handler could be more robust against unrecognised types

This patch causes the protocol to throw an exception when it sees an unrecognized type instead of silently doing nothing.

Patch: Conrad Hughes

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991778 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-884. html: HTML Generator: add Key attribute to the Data Types Tables
Bryan Duxbury [Thu, 2 Sep 2010 00:12:22 +0000 (00:12 +0000)] 
THRIFT-884. html: HTML Generator: add Key attribute to the Data Types Tables

This patch adds the Key attribute to the Data Types Tables.

Patch: Roger Meier

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991775 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-860. ocaml: copy method and reset method
Bryan Duxbury [Thu, 2 Sep 2010 00:07:20 +0000 (00:07 +0000)] 
THRIFT-860. ocaml: copy method and reset method

The attached patch provides the class copying and reset-to-default values methods.

Patch: Lev Walkin

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991774 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-886. erlang: Fix dialyzer warning in thrift_http_transport
David Reiss [Wed, 1 Sep 2010 16:54:05 +0000 (16:54 +0000)] 
THRIFT-886. erlang: Fix dialyzer warning in thrift_http_transport

This spec should have been updated in r990996

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991603 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-812. contrib: Add a demo of using Thrift over ZeroMQ
David Reiss [Tue, 31 Aug 2010 16:58:41 +0000 (16:58 +0000)] 
THRIFT-812. contrib: Add a demo of using Thrift over ZeroMQ

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991260 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-874. Add script to cross-compile the Thrift compiler for Windows
David Reiss [Tue, 31 Aug 2010 16:51:32 +0000 (16:51 +0000)] 
THRIFT-874. Add script to cross-compile the Thrift compiler for Windows

This script cross compiles the Thrift compiler from Ubuntu 10.04 to
Windows using the gcc-mingw32 package.  Run it from a fresh release
tarball.

All of the runtime libraries are disabled.  This is just for building
the compiler.

I set --build and --host to ensure that autoconf knows we are
cross-compiling.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991257 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-874. Disable AX_SIGNED_RIGHT_SHIFT for cross-compiles
David Reiss [Tue, 31 Aug 2010 16:51:31 +0000 (16:51 +0000)] 
THRIFT-874. Disable AX_SIGNED_RIGHT_SHIFT for cross-compiles

When cross-compiling, we cannot run test programs, so
AX_SIGNED_RIGHT_SHIFT won't work.  That macro is only needed for the
runtime library, not the compiler, so we can just skip it if we are
cross-compiling the compiler.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991256 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-874. Include missing time.h in two compiler files
David Reiss [Tue, 31 Aug 2010 16:51:30 +0000 (16:51 +0000)] 
THRIFT-874. Include missing time.h in two compiler files

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991255 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-865. Make Thrift buildable without libfl
David Reiss [Tue, 31 Aug 2010 16:51:29 +0000 (16:51 +0000)] 
THRIFT-865. Make Thrift buildable without libfl

yywrap is only needed if we need one lexer context to traverse multiple
input files.  This feature isn't used by Thrift, so we disable it with
"option noyywrap".  With yywrap disabled, there is no need to link to
libfl if flex is the lex implementation used.

With this patch, release tarballs can be built without lex.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991254 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-507. Only use Boost for building the C++ library
David Reiss [Tue, 31 Aug 2010 16:51:28 +0000 (16:51 +0000)] 
THRIFT-507. Only use Boost for building the C++ library

- Make AX_BOOST_BASE warn instead of fataling if Boost is not found.
- If Boost is not found, disable compilation of the C++ library.
- Do not use CPPFLAGS or LDFLAGS from Boost when building the compiler.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991253 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-507. Stop using boost::lexical_cast in the compiler
David Reiss [Tue, 31 Aug 2010 16:51:26 +0000 (16:51 +0000)] 
THRIFT-507. Stop using boost::lexical_cast in the compiler

We were using boost::lexical_cast to convert an integer to a string,
but using a stringstream is only slightly more complicated.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991252 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-507. ruby: Stop using boost::tokenizer
David Reiss [Tue, 31 Aug 2010 16:51:25 +0000 (16:51 +0000)] 
THRIFT-507. ruby: Stop using boost::tokenizer

Previously, the Ruby generated used boost::tokenizer to produce a
vector of namespace components from a dot-delimited namespace string.
We can do this manually with only a slight increase in complexity.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991251 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-507. smalltalk: Remove an unnecessary include (boost/tokenizer)
David Reiss [Tue, 31 Aug 2010 16:51:24 +0000 (16:51 +0000)] 
THRIFT-507. smalltalk: Remove an unnecessary include (boost/tokenizer)

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991250 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-850. Use AX_PROG_PERL_MODULES to test for Bit::Vector
David Reiss [Tue, 31 Aug 2010 16:51:22 +0000 (16:51 +0000)] 
THRIFT-850. Use AX_PROG_PERL_MODULES to test for Bit::Vector

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991249 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-506. Allow Thrift to be built without the C++ library
David Reiss [Tue, 31 Aug 2010 16:51:21 +0000 (16:51 +0000)] 
THRIFT-506. Allow Thrift to be built without the C++ library

Currently, this is only possible by explicitly passing --without-cpp.
It might be better to name it --without-cxx, but it is probably more
important to keep consistency with the "cpp" generator and "lib/cpp".

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991248 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-505. Make configure give a summary of the enabled components
David Reiss [Tue, 31 Aug 2010 16:51:20 +0000 (16:51 +0000)] 
THRIFT-505. Make configure give a summary of the enabled components

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991247 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-503. cpp: Move the tests built by "make check" under lib/cpp
David Reiss [Tue, 31 Aug 2010 16:51:19 +0000 (16:51 +0000)] 
THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991246 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-503. Use our standard include style in a few tests
David Reiss [Tue, 31 Aug 2010 16:51:14 +0000 (16:51 +0000)] 
THRIFT-503. Use our standard include style in a few tests

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991245 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-500. Remove nonexistent files from .gitignore (/test/java/)
David Reiss [Tue, 31 Aug 2010 16:51:13 +0000 (16:51 +0000)] 
THRIFT-500. Remove nonexistent files from .gitignore (/test/java/)

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991244 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-500. Ignore and clean some new generated files
David Reiss [Tue, 31 Aug 2010 16:51:12 +0000 (16:51 +0000)] 
THRIFT-500. Ignore and clean some new generated files

r772440 caused libtoolize to dump some extra files into aclocal.
This change adds them to gitignore and removes them in cleanup.sh.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991243 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-500. Remove unnecessary "ACLOCAL_AMFLAGS" line from lib/cpp/Makefile.am
David Reiss [Tue, 31 Aug 2010 16:51:11 +0000 (16:51 +0000)] 
THRIFT-500. Remove unnecessary "ACLOCAL_AMFLAGS" line from lib/cpp/Makefile.am

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991242 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-500. A bunch of small changes to bootstrap.sh
David Reiss [Tue, 31 Aug 2010 16:51:10 +0000 (16:51 +0000)] 
THRIFT-500. A bunch of small changes to bootstrap.sh

- Use "set -e" instead of exit 1
- Separate libtoolize detection and execution
- Reorder some programs to prevent spurious warnings

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991241 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-785. erlang: Eliminate log spew with framed transport
David Reiss [Mon, 30 Aug 2010 22:11:58 +0000 (22:11 +0000)] 
THRIFT-785. erlang: Eliminate log spew with framed transport

If we get an error when reading from the underlying transport, propagate
it out instead of dying and generating error logs.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991005 13f79535-47bb-0310-9956-ffa450edef68

14 years agoerlang: Un-revert r988722
David Reiss [Mon, 30 Aug 2010 22:06:03 +0000 (22:06 +0000)] 
erlang: Un-revert r988722

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991003 13f79535-47bb-0310-9956-ffa450edef68