Bryan Duxbury
af3b6309b5
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
2009-05-12 16:53:23 +00:00
Bryan Duxbury
c2a9245d25
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
2009-05-12 16:44:52 +00:00
David Reiss
a043be31fc
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
2009-05-12 02:17:43 +00:00
Bryan Duxbury
9aa716cf0f
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
2009-05-11 18:09:24 +00:00
David Reiss
16514d0a72
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
2009-05-10 05:14:44 +00:00
David Reiss
be378f232b
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
2009-05-07 00:41:18 +00:00
David Reiss
8db8980fa1
THRIFT-483. Use --copy for libtoolize
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@772440 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 22:00:33 +00:00
Bryan Duxbury
787538943b
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
2009-05-06 17:22:11 +00:00
Bryan Duxbury
b7b8af9e61
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
2009-05-05 18:59:49 +00:00
Bryan Duxbury
1cc7a1369e
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
2009-05-05 18:50:26 +00:00
Kevin Clark
50e030ad77
Preparing for 0.1.0 RC1
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@771515 13f79535-47bb-0310-9956-ffa450edef68
2009-05-05 00:53:01 +00:00
Andrew McGeachie
853bdfea38
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
2009-05-05 00:44:48 +00:00
Kevin Clark
f93f7a6611
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
2009-05-05 00:43:59 +00:00
Kevin Clark
657538d4df
Adding incubator disclaimer
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@771464 13f79535-47bb-0310-9956-ffa450edef68
2009-05-04 22:00:47 +00:00
Andrew McGeachie
0a2dc64c49
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
2009-05-04 21:17:55 +00:00
David Reiss
4f3192093d
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
2009-04-29 23:35:01 +00:00
David Reiss
36a5a25a21
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
2009-04-29 23:20:56 +00:00
David Reiss
62a3fba792
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
2009-04-29 04:54:24 +00:00
David Reiss
1cc8995c14
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
2009-04-27 19:36:50 +00:00
David Reiss
d90063f29b
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
2009-04-27 19:25:23 +00:00
T Jake Luciani
fae0e78158
THRIFT-460: fixes constant structs
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@766933 13f79535-47bb-0310-9956-ffa450edef68
2009-04-21 00:50:11 +00:00
T Jake Luciani
aac5bd4b13
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
2009-04-20 01:38:42 +00:00
Bryan Duxbury
66bc154aea
Add makefile stuff to svn:ignore
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@765279 13f79535-47bb-0310-9956-ffa450edef68
2009-04-15 17:37:52 +00:00
Bryan Duxbury
4650144f52
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
2009-04-13 18:12:07 +00:00
Bryan Duxbury
256f704d9d
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
2009-04-13 17:48:23 +00:00
Bryan Duxbury
ff219acb6c
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
2009-04-10 21:51:00 +00:00
Bryan Duxbury
5a56088930
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
2009-04-10 17:20:51 +00:00
David Reiss
ebb6cc4cf1
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
2009-04-09 20:02:56 +00:00
David Reiss
7d64c0a330
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
2009-04-08 20:46:13 +00:00
Bryan Duxbury
def30a6072
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
2009-04-08 00:19:37 +00:00
Bryan Duxbury
9e4c04125e
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
2009-04-07 23:45:15 +00:00
David Reiss
c42485a62f
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
2009-04-07 23:44:01 +00:00
David Reiss
c6adf050df
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
2009-04-07 23:38:39 +00:00
Bryan Duxbury
0781f2b549
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
2009-04-07 23:29:42 +00:00
Bryan Duxbury
c8c088cc52
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
2009-04-07 23:27:01 +00:00
Bryan Duxbury
6a3705c880
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
2009-04-07 23:23:39 +00:00
Kevin Clark
ffd4bafc7f
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
2009-04-07 22:47:34 +00:00
Bryan Duxbury
0bbef922ee
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
2009-04-07 22:23:40 +00:00
David Reiss
fe5b77d728
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
2009-04-07 20:51:48 +00:00
David Reiss
2bcf3995ef
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
2009-04-07 20:51:37 +00:00
Kevin Clark
b53471caea
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
2009-04-07 20:03:09 +00:00
Kevin Clark
38919c5721
Add basic Changelog
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@762908 13f79535-47bb-0310-9956-ffa450edef68
2009-04-07 19:12:01 +00:00
Kevin Clark
19f8d1febe
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
2009-04-07 19:09:28 +00:00
Bryan Duxbury
8407cfd466
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
2009-04-07 16:35:49 +00:00
Bryan Duxbury
ec47358d23
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
2009-04-07 16:31:04 +00:00
Bryan Duxbury
9b1f5a6f1a
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
2009-04-07 04:40:50 +00:00
Bryan Duxbury
07f38ff531
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
2009-04-07 04:37:28 +00:00
David Reiss
65043d6fbd
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
2009-04-05 06:19:51 +00:00
Bryan Duxbury
d1d1542e1e
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
2009-04-04 00:58:03 +00:00
David Reiss
cf8c94acb4
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
2009-04-03 19:07:19 +00:00