summaryrefslogtreecommitdiff
path: root/test/DebugProtoTest.thrift
Commit message (Collapse)AuthorAgeFilesLines
* THRIFT-5591 Add uuid type to IDL and implement reference code (+ improved ↵Jens Geyer2022-09-051-0/+1
| | | | | | | self-tests) Client: compiler general, netstd, Delphi Patch: Jens Geyer
* THRIFT-5352: Fix construction of Py exceptions with no fieldsNeil Williams2021-02-161-0/+2
| | | | | | | | Client: py When no fields are present, we don't get the special constructor that uses __setattr__ to avoid these checks. So the default constructor sets message normally and triggers the anti-mutation tripwires.
* Revert "Revert "THRIFT-4002: Make generated exception classes immutable by ↵Elvis Pranskevichus2019-12-121-0/+4
| | | | | | default"" This reverts commit 1234ddf8a5c98d5d700c82e087f04725170ad581.
* Revert "THRIFT-4002: Make generated exception classes immutable by default"D. Can Celasun2019-12-101-4/+0
| | | | This reverts commit b40f5c227f8db61be523f23ca017519167589d97.
* THRIFT-4002: Make generated exception classes immutable by defaultElvis Pranskevichus2019-12-101-0/+4
| | | | | | | | | | Currently, the generated exception classes are not hashable under Python 3 because of the generated `__eq__` method. Exception objects are generally expected to be hashable by the Python standard library. Post-construction mutation of an exception object seems like a very unlikely case, so enable hashing for all exceptions by making them immutable by default. This also adds a way to opt-out of immutability by setting the `python.immutable` annotation to `"false"`.
* THRIFT-4957 testSanePartsOfCompactProtoTestStruct FAILEDJens Geyer2019-09-111-0/+4
| | | | | | | Client: Java Patch: Jens Geyer This closes #1873
* THRIFT-4944 Field IDs > 255 fail with compact protocolJens Geyer2019-08-281-0/+5
| | | | | Cliwent: Delphi Patch: Jens Geyer
* THRIFT-3762 Fix warnings for deprecated Thrift "byte" fieldsNobuaki Sukegawa2016-03-291-26/+26
| | | | This closes #967
* THRIFT-3112 [Java] AsyncMethodCallback should be typed in generated AsyncIfaceJohn Sirois2016-03-181-0/+2
| | | | | | | | | | | | The parametrization brings the existing actual parametrization with client call implementation objects to the fore and so this change also fixes that parametrization to be a simple parametrization over the return type as is done in the server-side AsyncProcessor code. NB: This is a breaking change in both generated code and the client libs. This closes #840
* THRIFT-3504 Fix FastbinaryTest.pyNobuaki Sukegawa2016-01-021-5/+5
| | | | | | | Client: Python Patch: Nobuaki Sukegawa This closes #757
* THRIFT-162 Thrift structures are unhashable, preventing them from being used ↵Nobuaki Sukegawa2015-11-281-5/+9
| | | | | | | | | as set elements Client: Python Patch: David Reiss, Nobuaki Sukegawa This closes #714
* THRIFT-3364 Fix ruby binary field encoding in TJSONProtocolJens Geyer2015-10-021-0/+1
| | | | | | | Client: Ruby Patch: Nobuaki Sukegawa <nsukeg@gmail.com> This closes #633
* THRIFT-3217 Provide a little endian variant of the binary protocol in C++Ben Craig2015-07-081-1/+5
| | | | | | | Client: C++ Patch: Ben Craig <bencraig@apache.org> This closes #537
* THRIFT-2768: Whitespace FixupJens Geyer2014-10-031-3/+3
| | | | | | | Client: General (Makefile.am, *.thrift) Patch: Jens Geyer DocTest.thrift has NOT been changed, the trailing whitespaces are part of the test case.
* THRIFT-2352 msvc failed to compile thrift testsRoger Meier2014-02-091-1/+1
| | | | Patch: Sergei Nikulov & Roger Meier
* THRIFT-1365. java: TupleProtocol#writeBitSet unintentionally writes a ↵Bryan Duxbury2011-09-261-0/+14
| | | | | | variable length byte array git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1176072 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-1331. rb: Ruby library deserializes an empty map to nilBryan Duxbury2011-09-201-0/+4
| | | | | | | | This patch properly detects when the metadata is omitted in Compact Protocol messages. Patch: Armaan Sarkar git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1173300 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-916: Commit THRIFT-916_fix_no-overflow.patch -- remove overflow ↵Christian Lavoie2010-11-281-2/+2
| | | | | | coming from a few constants. git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1039885 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-582 C(c_glib) implementation of ThriftRoger Meier2010-10-271-0/+1
| | | | | | | Patch: Anatol Pomozov and Michael Lum git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1027933 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-870. java: Java constants don't get Javadoc commentsBryan Duxbury2010-09-131-0/+1
| | | | | | Fix a trivial oversight. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996592 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-897. compiler: Don't allow unqualified enum constant referencesBryan Duxbury2010-09-121-3/+3
| | | | | | | | Missed a spot. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996326 13f79535-47bb-0310-9956-ffa450edef68
* THRFIT-804. java: CompareTo is broken for unions set to map, set, or listBryan Duxbury2010-06-231-1/+6
| | | | | | This patch fixes TUnion's compareTo, and factors out the standard part of the comparison to TBaseHelper. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@957350 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-768. java: Async client for JavaBryan Duxbury2010-05-261-3/+5
| | | | | | This patch adds an implementation of a fully-asynchronous client that makes use of NIO. Stubs for the async method calls are generated along with the existing synchronous ones. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@948492 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-671. rb: Ruby compact protocol implementation gets mixed up when ↵Bryan Duxbury2010-01-061-0/+11
| | | | | | | | there are fields that don't fit in the delta space This patch adds a test and a fix for the problem. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@896712 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-670. java: Unions don't skip unrecognizable fields correctlyBryan Duxbury2009-12-311-0/+8
| | | | | | This patch adds a test and a fix for the bug. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@894924 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-668. java: Using a map in an exception type will generate a class ↵Bryan Duxbury2009-12-311-1/+11
| | | | | | | | that does not implement Comperable-> that will generate a stub that does not compile The compiler was incorrectly assuming that exceptions were comparable. Now, exceptions are treated just like structs. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@894919 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-632. java: Constants of enum types don't behave wellBryan Duxbury2009-12-181-2/+22
| | | | | | This patch causes constants of all types to be resolved differently by the compiler, and makes it so that constants of enum types contain a reference to the enum type so that code generators can produce the correct names. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@892358 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-551. java: Enumeration doesn't generate real enum in JavaBryan Duxbury2009-11-191-0/+6
| | | | | | This patch makes the compiler generate actual Enum classes. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@882211 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-624. java: compareTo is broken for Unions with binary fieldsBryan Duxbury2009-11-111-0/+5
| | | | | | This patch adds a special case for byte[] values in TUnion. It also fixes a related bug in TBaseHelper for comparing two byte arrays. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@835065 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-565. java: Structs containing typedefs for incomparable objects will ↵Bryan Duxbury2009-11-091-0/+6
| | | | | | | | be considered comparable This patch causes the compiler to fully unwrap typedefs when determining comparability. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@834119 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-446. java: PartialDeserialization in JavaBryan Duxbury2009-10-011-0/+6
| | | | | | | | This patch adds a partialDeserialize method to TDeserializer that allows you to request a specific subfield of the serialized data. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@820786 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-409. java: Add "union" to ThriftBryan Duxbury2009-09-011-0/+15
| | | | | | | | | This patch introduces new IDL syntax for creating Unions, explicityly single-valued structs. While the parser changes are portable, this patch only includes the actual generated code changes for the Java library. Other libraries can continue to generate a struct with the same fields and remain compatible until they are able to implement the full shebang. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@810300 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-236. Structs should be serialized in a consistent orderBryan Duxbury2009-04-101-0/+11
| | | | | | 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
* THRIFT-356. Improve CompactProtocolTestStructDavid Reiss2009-04-071-44/+97
| | | | | | | | | | | | | | | | | | | | | | - 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
* THRIFT-420. Remove all negative structure field ids from the codeDavid Reiss2009-04-021-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@761393 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-417. rb: BufferedTransport can enter an infinite loopBryan Duxbury2009-04-011-19/+28
| | | | | | | | | | | | Switch native proto implementations to use read_all instead of read. Add a bunch of tests to verify. Also: - removed some commented code in binary_protocol_accelerated.c - struct.c was missing one of the possible native method calls - updates gem manifest (included files that didn't exist) - fixed svn:ignores of test/rb/gen-rb and lib/java/gen-java git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@761037 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-387. Add license headers to a bunch of filesDavid Reiss2009-03-301-0/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@760189 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-110. java: A more compact formatBryan Duxbury2009-02-101-0/+63
| | | | | | This patch includes the Java implementation of the new Compact Protocol outlined in the issue and a matching test. It also creates Fixtures.java, a helper class that contains some useful test structure instances. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@742847 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-256. python: Fix inheritance of services in the same IDL fileDavid Reiss2009-02-071-0/+4
| | | | | | | | | The old version of type_name did not fully qualify parent service names when they were defined in the same IDL file, but it is necessary because they end up in different Python files. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@741833 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-310. python: Generate valid code for empty servicesDavid Reiss2009-02-071-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@741832 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-314. Purge reflection.limitedDavid Reiss2009-02-071-10/+0
| | | | | | | | | | | | This was a feature designed to allow a Thrift server to report information about its interface. However, the feature has significant design problems, and is presence is currently causing confusion without doing any good. Therefore, it is being removed. It will always be in source control if and when we are ready to come back to it. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@741824 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-225. java/cpp: Handle non-i32 integer constants properlyDavid Reiss2008-12-161-3/+6
| | | | | | | | | | | | | 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
* Clean up the unit tests.David Reiss2008-04-071-1/+1
| | | | | | | | | | - Make Python tests cwd-agnostic. - Use boost::test. - Add a benchmark. - Use a library to clean up test/Makefile.am. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665640 13f79535-47bb-0310-9956-ffa450edef68
* Add more complete base64 testing for C++ JSON protocol.David Reiss2008-03-071-0/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665559 13f79535-47bb-0310-9956-ffa450edef68
* Add support for .equals() to Java structs.David Reiss2008-03-021-0/+1
| | | | | | | | | | | | | | | | | | | - Add a new method to t_java_generator that generates a .equals() method. - Add a correct but useless implementation of hashCode for structs. (This is required by conventino when overriding .equals().) - Add java_package to DebugProtoTest and OptionalRequiredTest. - Add a new structure to OptionalRequiredTest to assist testing the behavior of .equals() with respect to null and unset fields. - Clean up test/java/build.xml a bit. (It still has a ways to go.) - Add EqualityTest.java to test .equals(). - Add IdentityTest.java to test that writing and reading a structure preserves equality. Tested by runnint atn test. I also looked at the generated code for OptionalRequiredTest.thrift. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665541 13f79535-47bb-0310-9956-ffa450edef68
* Make the C++ generator use non-hardcoded namespaces.David Reiss2008-02-271-1/+1
| | | | | | | | | | | - Make the C++ generator use program->get_namespace("cpp") instead of program->get_cpp_namespace() - Eliminate the explicit "cpp_namespace" in t_program. - Deprecate the cpp_namespace token. - Update example .thrift files and syntax files. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665513 13f79535-47bb-0310-9956-ffa450edef68
* Thrift: Add a full-featured JSON protocol for C++.David Reiss2008-02-181-0/+12
| | | | | | | | | | | | | | | | Summary: This change adds a new and exciting protocol to Thrift. It uses RFC-compliant JSON as the wire protocol and is fully human readable. (once a little whitespace has been inserted.) Unlike the existing JSON protocol for Java, which is intended to allow Thrift data to be transferred to scripting languages, this protocol is lossless and fully read-write. It was written by Chad Walters of Powerset and reviewed by David Reiss. Tested by running make check. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665482 13f79535-47bb-0310-9956-ffa450edef68
* Thrift: "make check" support.David Reiss2008-02-041-8/+0
| | | | | | | | | | | | | | | | | | Summary: Add a Makefile.am in the test directory that runs some of the test programs when "make check" is executed. Also removed some obsolete comments. Reviewed By: mcslee Test Plan: Ran make check, saw all tests pass. Ran make install, saw no test programs installed. Ran ./cleanup.sh, saw a pristine workspace. Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665458 13f79535-47bb-0310-9956-ffa450edef68
* Thrift: Re-committing zlib.David Reiss2007-09-171-0/+9
| | | | | | | | | | | | | | | | | | | Summary: Same as the last (reverted) zlib patch, but this time with way more awesome support for building with no zlib headers installed. Reviewed By: mcslee Test Plan: - Did lots of really pathological stuff in my VMware. - On devrs004: ./bootstrap.sh && ./configure && make && make install DESTDIR=/tmp/tzinst && echo "Yay" Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665269 13f79535-47bb-0310-9956-ffa450edef68
* Thrift: Reverting TZlibTransportDavid Reiss2007-09-151-9/+0
| | | | | | | | | | | | | Summary: Stupid Red Hat. The dev boxes don't have the development packages for zlib. Blame Rev: 59856 Reviewed By: mcslee git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665263 13f79535-47bb-0310-9956-ffa450edef68