summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Thrift now a TLP - INFRA-3116py-compilerGavin McDonald2010-10-280-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/thrift/branches/py-compiler@1028168 13f79535-47bb-0310-9956-ffa450edef68
* Snapshot (back up) my work-in-progress before I hop on a plane.Greg Stein2009-01-3111-0/+1090
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/branches/py-compiler@739520 13f79535-47bb-0310-9956-ffa450edef68
* Create a branch for an experimental Thrift compiler written in Python.Greg Stein2009-01-310-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/branches/py-compiler@739518 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-295: remove empty directories.Greg Stein2009-01-310-0/+0
| | | | | | | These directories have no files in them. Toss 'em from version control. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739501 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-292Greg Stein2009-01-309-4188/+0
| | | | | | | | | | | | | | | Delete a number of generated artifacts. The build system should produce these, rather than having them stored in version control. * contrib/fb303/py/fb303/...: remove generated Python bindings * contrib/fb303/java/FacebookService.java: * contrib/fb303/java/fb_status.java: * contrib/fb303/java/Constants.java: - remove generated Java bindings git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739384 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-291Greg Stein2009-01-301-10/+7
| | | | | | | * README: tweak for Thrift's new home at Apache. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739380 13f79535-47bb-0310-9956-ffa450edef68
* Add a few new generated directories to .gitignoreDavid Reiss2009-01-291-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739089 13f79535-47bb-0310-9956-ffa450edef68
* Accidentally svn:ignored Makefile*, getting rid of Makefile.am changesBryan Duxbury2009-01-290-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739087 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-289. cpp: Fix "make check" by defining a comparator for "Instanity"David Reiss2009-01-291-0/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739083 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-290. java: Metadata map doesn't properly reference external thrift ↵Bryan Duxbury2009-01-291-2/+2
| | | | | | | | file's types The code generator now uses full namespaces to refer to the classes. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739045 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-289. test: "make check" no longer runs the Java testsBryan Duxbury2009-01-294-14/+4
| | | | | | | | Thanks to David for the changes that straighten the makefiles out. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739024 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-288. java: Generated code iterates maps during write inefficientlyBryan Duxbury2009-01-291-5/+6
| | | | | | Newly generated code will now use entrySet instead of keySet when serializing maps. Existing generated classes does not need to be regenerated, though they won't reap the performance improvements unless they do. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@738765 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-218. java: When validation fails on serialization/deserialization, ↵Bryan Duxbury2009-01-291-4/+4
| | | | | | | | print out the invalid object The error thrown when validation fails now contains the toString output. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@738764 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-253. java: Enhance FieldMetaDataBryan Duxbury2009-01-2912-11/+286
| | | | | | The code generator new creates a static map of field id to metadata for each field, including information like the field TType, class of embedded structs, required/optional/default, etc. Additionally, on loading, generated classes statically register their class and metadata map with the global FieldMetaData map, so you can get the metadata for any TBase-implementing class easily. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@738708 13f79535-47bb-0310-9956-ffa450edef68
* undoing an unintentional commit to ax_java.m4Bryan Duxbury2009-01-291-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@738704 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-166. java: Java tests should be in lib/java/test/Bryan Duxbury2009-01-2916-65/+52
| | | | | | | | | | THRIFT-221. java: Make java build classpath more dynamic and configurable This issue moves all the tests from test/java to lib/java/test/src and combines the build files. In addition, rather than continue on with the same busted approach to finding dependent jars for the tests, THRIFT-221 has been implemented, allowing the user to specify a .thrift-build.properties file in their home directory that contains additional classpath entries. As a result of this patch, "make check" does not currently work as it is expected to. This will be resolved in a follow-up commit. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@738695 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-239. java: Generate @Override annotations for all overrided methodsBryan Duxbury2009-01-271-3/+4
| | | | | | | | equals, toString, clone, and hashcode now all have a preceeding @Override annotation. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@738270 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-284. python: Update tutorial files to use reprDavid Reiss2009-01-242-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@737424 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-240. java: TBase should implement CloneableBryan Duxbury2009-01-221-1/+1
| | | | | | | | The TBase interface now extends Cloneable. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@736691 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-223 Validate method should check that enum types are assigned valid ↵Bryan Duxbury2009-01-201-32/+88
| | | | | | | | values Enum classes now get a VALID_VALUES Set that contains all of the acceptable values. Structs' validate() method has been extended to compare an enum field's value to the valid value set, but only if the __isset flag for that field is true, meaning that non-beans generated code will not perform this validity check unless the __isset flag is manually maintained. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@735910 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-224 Validate method should check that enum types are assigned valid ↵Bryan Duxbury2009-01-161-0/+25
| | | | | | | | values Each generated enumeration type will now have a VALID_VALUES Set as a static member that contains all the values of the enumeration. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@735167 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-271: allows build to locate libevent on osxT Jake Luciani2009-01-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@734878 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-244. cpp: Make TJSONProtocolFactor inherit from TProtocolFactoryDavid Reiss2009-01-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@734863 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-244. cpp: Fix TJSONProtocol::writeMessageBeginDavid Reiss2009-01-151-1/+1
| | | | | | | | uint8_t is a character type, so lexical_cast doesn't convert it to an integer representation. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@734862 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-34 Java libraries should be namespaced under org.apache.thrift, not ↵Bryan Duxbury2009-01-1572-249/+249
| | | | | | | | | | com.facebook.thrift Library classes and tests have been moved to the proper package and directory structure, and references to com.facebook.thrift where replaced with org.apache.thrift throughout the code. The fb303 contrib project still contains com.facebook packages. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@734855 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-216. Add validate method to fixtures so tests passKevin Clark2009-01-141-0/+54
| | | | | | | Author: Esteve Fernandez git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@734565 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-242. python: Used named arguments in __init__ instead of a dictDavid Reiss2009-01-142-34/+52
| | | | | | | | | | | | | | | This is a wire-compatible but non-source-compatible change. When initializing structures, you must use Foo(bar=1, baz="qux") Foo(**{"bar": 1, "baz": "qux"}) instead of Foo({"bar": 1, "baz": "qux"}) git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@734536 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-249. java: Add @param lines to function docstringsDavid Reiss2009-01-061-0/+27
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@732116 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-129. csharp: Make all Thrift structures extend TBaseDavid Reiss2009-01-063-4/+28
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@732081 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-46. csharp: Throw the correct exception for an unknown methodDavid Reiss2009-01-061-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@732080 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-25. csharp: Various compiler and library improvementsDavid Reiss2009-01-0617-55/+1448
| | | | | | | | | | | | | | | | | | | | | | | Compiler: - Thrift structures are serializable. - The member fields of thrift structures are now private and only accessible through Properties, which keep the appropriate __isset up to date. Library - Addition of TBufferedTransport, which can be used to wrap other Transports. - Addition of TThreadedServer, which manually manages threads instead of relying on .NET ThreadPool. - Servers use a log delegate that defaults to System.Console but allows servers to use log4net without introducing the dependency. ThriftTest Visual Studio Project - Test client and server that use ThriftTest.thrift. The project references thrift.exe and Thrift.dll from the subversion tree and automatically builds generated code. This makes it very easy to test changes in both the compiler and library. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@732079 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-246. rb: Generate #struct_fields rather than reflect.Kevin Clark2009-01-065-1/+57
| | | | | | | Author: Bryan Duxbury git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@731806 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-157. rb: Quote strings and qualify class names properlyKevin Clark2009-01-053-9/+20
| | | | | | | Author: Dave Engberg git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@731763 13f79535-47bb-0310-9956-ffa450edef68
* THRFIT-231. rb: Make Thrift::Structs hashableKevin Clark2009-01-051-0/+9
| | | | | | | Author: Bryan Duxbury git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@731760 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-235. java: Explicitly cast integer constants to doubleDavid Reiss2009-01-051-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@731723 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-222. java: Better exposure if __isset in beans styleDavid Reiss2009-01-054-1/+148
| | | | | | | | - Generate an isSet method for each field to test its set-ness. - Generate a generic isSet method that checks by field id. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@731722 13f79535-47bb-0310-9956-ffa450edef68
* java: Add a helper function to implement nocamel styleDavid Reiss2009-01-051-39/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@731721 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-191. java: Create a static field id -> name map for each structDavid Reiss2009-01-052-0/+37
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@731720 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-138. java: Fix copy constructor for binary fieldsDavid Reiss2009-01-052-10/+30
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@731719 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-241. python: Generate a better implementation of __repr__David Reiss2009-01-051-4/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@731685 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-193: Patch for proper namespace support in perl compilerT Jake Luciani2008-12-234-37/+52
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@728863 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-2: check for thrift::socket handle being nullT Jake Luciani2008-12-231-2/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@728860 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-208. Fix ax_java.m4 for Ubuntu 8.10David Reiss2008-12-221-104/+81
| | | | | | | | | | | | | | | | | | | | | | On Ubuntu 8.10, /bin/sh is a symlink to dash (a minimal Bourne-compatible shell). ./configure is smart enough to detect when the shell it is run with is missing features. In such cases, it switches to a more capable shell (like bash). This causes it to enable certain shell constructs that are not supported by dash. However, the Autoconf macro file that we use to detect Java support interacts poorly with Autoconf because it uses divert(-1) for large comments. This somehow causes configure to set SHELL to /bin/sh. As a result, the libtool script generated during the build process is not compatible with the shell that is used to run it (if a recent version of libtool is in use). This change replaces all of the "divert(-1)" comments with more traditional "dnl" comments. This allows Thrift to build on Ubuntu 8.10. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@728756 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-190. Added dependency check to perl MakefileT Jake Luciani2008-12-221-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@728678 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-220. Add some stuff to svn:ignoreDavid Reiss2008-12-160-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@727131 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-225. java/cpp: Handle non-i32 integer constants properlyDavid Reiss2008-12-163-5/+16
| | | | | | | | | | | | | Java generates a warning when converting from an integer constant to a byte or short without an explicit cast. This change adds a cast to byte and short literals in Java. Both Java and C++ fail to compile integer literals larger than 2^31 unless they are decorated with "L" (for Java) or "LL" (for g++). This change adds the appropriate decorations. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@727130 13f79535-47bb-0310-9956-ffa450edef68
* rb: Thrift.check_type should check struct classes [THRIFT-185]Kevin Clark2008-12-132-1/+6
| | | | | | | Author: Piotr Kozikowski git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@726156 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-121. Support arbitrary type annotationsDavid Reiss2008-12-103-6/+84
| | | | | | | | | | | Adds syntax for attaching arbitrary key/value pairs to types. These annotations can be accessed by individual generators to alter the code they produce. This version supports annotations on container types and structures. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@724954 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-203. cpp: Make library headers compile under g++ -pedanticDavid Reiss2008-12-056-38/+38
| | | | | | | | It turns out that trailing commas in enum definitions are not actually valid C++. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@723562 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-214. cpp: Qualify a cast to fix OSX compilationDavid Reiss2008-12-021-3/+2
| | | | | | | | | | | | id_t is defined in some OSX header, and the id_t in this function resolved to that one instead of Thread::id_t. This change fully qualifies the type to make sure it resolves properly. Also remove a comment about eliminating the C-style cast, since it is actually quite appropriate in this case. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@722337 13f79535-47bb-0310-9956-ffa450edef68