Nobuaki Sukegawa
a8765276d8
THRIFT-3680 Java async processor fails to notify errors to clients
...
This closes #903
2016-03-18 22:35:39 +09:00
John Sirois
bd964c7f34
THRIFT-3112 [Java] AsyncMethodCallback should be typed in generated AsyncIface
...
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
2016-03-18 22:33:38 +09:00
Jens Geyer
55499b8802
THRIFT-3705 Go map has incorrect types when used with forward-defined types
...
Client: Go
Patch: Jens Geyer
This closes #951
2016-03-17 09:50:59 +02:00
Mark Erickson
8c8ae96eb8
THRIFT-3719: Dart generator should use lowerCamelCase for service names
...
Client: Dart
Patch: Mark Erickson
This closes #932
2016-03-08 13:25:30 -06:00
Mark Erickson
aef81d632f
THRIFT-3710 Dart generator does not camel case Constants class names
...
Client: Dart
This closes #922
2016-03-07 11:01:34 -06:00
Jens Geyer
775671aea4
THRIFT-3709 Comment syntax can produce broken code
...
Client: Compiler(general)
Patch: Jens Geyer
2016-03-07 00:19:21 +01:00
Jens Geyer
35b4465ab7
THRIFT-3664 Remove md5.c
...
Client: Compiler (general)
Patch: Jens Geyer
2016-03-06 14:59:35 +01:00
Nobuaki Sukegawa
5fb1fda25a
THRIFT-3708 NameError: global name 'TProtocol' is not defined
...
This closes #920
2016-03-06 09:45:48 +09:00
Mark Erickson
b52d03d7a0
THRIFT-3697 Dart generator does not name imports
...
Client: Dart
Patch: Mark Erickson
2016-02-29 13:24:16 -06:00
Nobuaki Sukegawa
d479e23a1d
THRIFT-3691 Run flake8 Python style check on Travis-CI
...
Client: Build (Python)
Patch: Nobuaki Sukegawa
This closes #907
2016-02-28 12:05:14 +09:00
Nobuaki Sukegawa
3b4a93bba1
THRIFT-3664 Remove md5.c
...
Client: Compiler
Patch: Nobuaki Sukegawa
This closes #891
2016-02-22 23:27:12 +09:00
Jens Geyer
ea2bd9cb08
THRIFT-3656 incorrect serialization of optionals
...
Client: Dart
Patch: Jens Geyer
2016-02-21 15:37:26 +01:00
Jens Geyer
517aa15791
THRIFT-3652 incorrect serialization of optionals
...
Client: AS3
Patch: Jens Geyer
2016-02-21 15:37:25 +01:00
Jens Geyer
a2e74465d4
THRIFT-3654 incorrect serialization of optionals
...
Client: Haxe
Patch: Jens Geyer
2016-02-21 15:37:25 +01:00
Jens Geyer
b72bb94a82
THRIFT-3650 incorrect union serialization
...
Client: Compiler (general)
Patch: Jens Geyer
This closes #881
2016-02-21 15:37:11 +01:00
Nobuaki Sukegawa
8b411a0c8f
THRIFT-3632 c_glib testserialization fails with glib assertion
...
Client: c_glib
Patch: Nobuaki Sukegawa
This closes #865
2016-02-14 22:47:19 +09:00
Roshan George
949e242ec8
THRIFT-2877 Generate hashCode using primitives and static utility methods
...
Client: Java
Author: Roshan George <roshan@arjie.com>
The TBaseHelper.hashCode methods are the Java 8 implementations of hashCode for
those types.
This closes #448
2016-02-14 22:47:19 +09:00
Jens Geyer
d4722d9c48
THRIFT-3629 Parser sets exitcode on errors, but the generator does not
...
Client: Compiler (general)
Patch: Jens Geyer
This closes #861
2016-02-14 13:50:07 +01:00
Jens Geyer
4733c4c535
THRIFT-3605 Have the compiler complain about invalid arguments and options
...
Client: Compiler (general)
Patch: Jens Geyer
This closes #862
2016-02-14 11:10:42 +01:00
Nobuaki Sukegawa
6525f6ae87
THRIFT-3612 Add Python C extension for compact protocol
...
Client: Python
Patch: Nobuaki Sukegawa
This closes #844
2016-02-13 23:12:34 +09:00
Stig Bakken
41e8cbf686
THRIFT-3617 cmake: include gv
and xml
generators in build
...
Client: Build (Compiler)
Patch: Stig Bakken
This closes #851
2016-02-13 23:12:34 +09:00
Nobuaki Sukegawa
4708409c2d
THRIFT-3601 Better conformance to PEP8 for generated code
...
This closes #837
2016-02-05 20:48:07 +09:00
Nobuaki Sukegawa
1f647f01c4
THRIFT-3584 boolean false value cannot be transferred
...
Return value fix and test.
2016-02-04 22:20:00 +09:00
WangYaofu
cfebe7e2c6
THRIFT-3584 Lua: boolean false value cannot be transferred
...
This closes #826
2016-02-04 22:20:00 +09:00
Mark Erickson
194959917c
THRIFT-3589 Pass references to field names in constructor through get_field_name
...
This closes #825
2016-01-31 12:11:17 +01:00
Roshan George
a9346a308f
THRIFT-3377 Deep copy is actually shallow when using typedef members
...
Client: Java
Patch: Roshan George <roshan@arjie.com>
This closes #823
2016-01-28 23:05:06 +01:00
Jens Geyer
c1fda249f8
THRIFT-3582 Erlang libraries should have service metadata
...
Client: Erlang
Patch: Steve Cohen <steve@pinterest.com>
2016-01-28 23:05:05 +01:00
Jens Geyer
108fab8242
THRIFT-3501 Forward slash in comment causes compiler error
...
Client: Compiler (general)
Patch: Jens Geyer
2016-01-28 23:03:24 +01:00
Jens Geyer
41e4847786
THRIFT-3575 Go compiler tries to use unexported library methods when using read_write_private
...
Client: Go
Patch: Chris Bannister
2016-01-24 12:25:00 +01:00
Stig Bakken
aff06ed3fa
THRIFT-3574 Cocoa generator makes uncompilable imports
...
Client: Cocoa
Patch: Stig Bakken <stig@zedge.net>
This closes #812
2016-01-22 22:26:52 +01:00
Mark Erickson
217a44b9dc
THRIFT-3535 Dart generator argument to produce a file structure usable in parent library
...
Client: Dart
Patch: Mark Erickson <mark.erickson@workiva.com>
This closes #789
2016-01-19 22:35:40 +01:00
Simon South
420ee1e7f8
THRIFT-3552 c_glib: Fix memory leak in processor
...
- t_c_glib_generator.cc: Free method-name string once matched within a
generated dispatch_call implementation.
- thrift_dispatch_processor.c: Free method-name string in default
dispatch_call implementation.
2016-01-16 12:45:19 +01:00
Jens Geyer
b815e3786f
THRIFT-3554 Constant decls may lead to "Error: internal error: prepare_member_name_mapping() already active for different struct"
...
Client: C#
Patch: Jens Geyer
2016-01-14 23:45:28 +01:00
Jens Geyer
9335167280
THRIFT-3537 Remove the (now obsolete) csharp:asyncctp flag
...
Client: C#
Patch: Jens Geyer
2016-01-14 22:39:30 +01:00
Jens Geyer
ba01d6b2c1
THRIFT-3554 Constant decls may lead to "Error: internal error: prepare_member_name_mapping() already active for different struct"
...
Client: C#
Patch: Jens Geyer
2016-01-14 22:39:28 +01:00
Adam Connelly
0c0649de7e
THRIFT-3510 Add HttpTaskAsyncHandler implementation
...
Client: C#
Author: Adam Connelly <adam.rpconnelly@gmail.com>
This closes #762
2016-01-14 20:26:14 +01:00
Christopher Rogers
0bd810af87
THRIFT-3545 Cocoa: Container type literals do not compile
...
Client: Cocoa
Patch: Christopher Rogers <christopher.rogers@linecorp.com>
This closes #790
2016-01-14 19:23:48 +01:00
Nobuaki Sukegawa
7b545b5720
THRIFT-3532 Add configurable string and container read size limit to Python protocols
...
This closes #787
2016-01-13 20:25:23 +09:00
Nobuaki Sukegawa
a3b88a012e
THRIFT-3503 Enable py:utf8string by default
...
This closes #779
2016-01-11 11:41:14 +09:00
Nobuaki Sukegawa
03565bf467
THRIFT-3526 Code generated by py:utf8strings does not work for Python3
...
This closes #776
2016-01-11 11:34:22 +09:00
Nobuaki Sukegawa
1b4ebc393d
THRIFT-3528 Fix warnings in thrift.ll
...
This closes #778
2016-01-11 11:34:20 +09:00
BCG
de0b4b5543
THRIFT-3523 XML Generator
...
Client: XML
Patch: Benjamin Gould, with minor modifications by Jens Geyer
This closes #774
2016-01-10 11:54:04 +01:00
Jens Geyer
f6521c64f4
THRIFT-3314 Dots in file names of includes causes dots in javascript variable names
...
Client: Javascript
Patch: Kapil Joshi (based on the equivalent C# version)
2016-01-09 00:43:40 +01:00
Eric Klaus
4fcc74478f
THRIFT-3499 Add package_prefix to python generator
...
Client: Python
Patch: Eric Klaus <eric.klaus@workiva.com>
This closes #755
2016-01-09 00:21:35 +01:00
Nobuaki Sukegawa
4733db4e15
THRIFT-3519 fastbinary does not work with -gen py:utf8strings
...
Client:
Patch: Nobuaki Sukegawa
This closes #769
2016-01-06 04:35:12 +09:00
BCG
2aaae8a604
THRIFT-3486 - Java generated getFieldValue
is incompatible with setFieldValue
for binary values
...
Client: Java
Patch: BCG
This closes #743
2016-01-03 02:55:16 +09:00
Simon South
bf8f7b425e
THRIFT-3383 i64 related warnings
...
This closes #764
2016-01-03 02:55:03 +09:00
Nobuaki Sukegawa
b78d781b2e
THRIFT-3438 Enable py:new_style by default
...
Client: Python
Patch: Nobuaki Sukegawa
This closes #759
2016-01-02 22:54:16 +09:00
Nobuaki Sukegawa
7b8946941e
THRIFT-3504 Fix FastbinaryTest.py
...
Client: Python
Patch: Nobuaki Sukegawa
This closes #757
2016-01-02 22:54:16 +09:00
Sebastian Zenker
39e505c150
THRIFT-3496 C++: Cob style client fails when sending a consecutive request
...
This closes #752
2015-12-24 02:11:17 +09:00
Nobuaki Sukegawa
e68ccc23be
THRIFT-3482 Haskell JSON protocol does not encode binary field as Base64
2015-12-13 23:48:22 +09:00
Jens Geyer
eb5f117452
THRIFT-3489 warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
...
Client: Compiler(general)
Patch: Jens Geyer
2015-12-11 21:29:38 +01:00
Jens Geyer
d0e444c9d9
THRIFT-3488 warning: unused variable 'program'
...
Client: Go
Patch: Jens Geyer
2015-12-11 21:29:37 +01:00
Jens Geyer
52de5cafbd
THRIFT-3477 Parser fails on enum item that starts with 'E' letter and continues with number
...
Client: Compiler (general)
Patch: Jens Geyer
Fixes the issue with negative doubles. The "-" was recognized as valid st_identifier, which is only a leftover from THRIFT-3416 that is no longer used at all.
2015-12-08 23:03:17 +01:00
Jens Geyer
5eed3a161f
THRIFT-3477 Parser fails on enum item that starts with 'E' letter and continues with number
...
Client: Compiler (general)
Patch: Jens Geyer
2015-12-08 21:05:52 +01:00
Nobuaki Sukegawa
ba3fe86b0a
THRIFT-3464 Fix several defects in c_glib code generator
...
Client: c_glib compiler
Patch: Nobuaki Sukegawa
This closes #724
2015-12-06 10:11:16 +09:00
Mark Erickson
f08771ccea
THRIFT-3471 Dart generator does not handle uppercase argument names
...
Client: Dart
Patch: Mark Erickson <mark.erickson@workiva.com>
This closes #729
2015-12-04 21:31:04 +01:00
Nobuaki Sukegawa
362a5eda21
THRIFT-3455 struct write method's return value is incorrect
...
Client: c_glib Compiler
Patch: Nobuaki Sukegawa
2015-12-04 00:38:33 +09:00
Jan Brauer
70e6c29e3a
THRIFT-1840 Thrift Generated Code Causes Global Variable Leaksk
...
Client: Node.js
Patch: Jan Brauer <jan@jimdo.com> & Tim Sebastian <tim.sebastian@gmail.com>
This closes #707
2015-12-04 00:37:31 +09:00
jriskin
bc3829e8fd
THRIFT-3462 Cocoa generates Incorrect #import header names
...
Client: Cocoa
Patch: J. Riskin
This closes #722
2015-12-02 21:46:34 +01:00
Jens Geyer
3aa617a483
THRIFT-3413 Thrift code generation bug in Go when extending service
...
Client: Go
Patch: Jens Geyer
2015-12-02 21:10:13 +01:00
Nobuaki Sukegawa
73fae0fbb7
Revert "THRIFT-3443 Thrift include can generate uncompilable code"
...
This reverts commit ef3cf819e1
.
Also disables tutorial build for Go on Travis to avoid failure caused
by this revert.
2015-12-02 01:22:12 +09:00
Jens Geyer
ad6fd1b6d2
THRIFT-3339 Support for database/sql
...
Client: Go
Patch: Adam Beberg
2015-11-30 21:40:01 +01:00
Mark Erickson
b0526d5243
THRIFT-3448 Add a Dart generator argument for overriding the thrift library dependency in generated pubspec.yaml files.
2015-11-28 00:58:31 +01:00
Nobuaki Sukegawa
e841b3dac6
THRIFT-162 Thrift structures are unhashable, preventing them from being used as set elements
...
Client: Python
Patch: David Reiss, Nobuaki Sukegawa
This closes #714
2015-11-28 00:08:07 +01:00
Nobuaki Sukegawa
ef3cf819e1
THRIFT-3443 Thrift include can generate uncompilable code
...
Client: Go Compiler
Patch: Nobuaki Sukegawa
This closes #709
2015-11-27 00:08:41 +09:00
Tom Lee
314fea26fe
THRIFT-3431 Avoid an unnecessary HashMap lookup
...
The "schemes" lookup that occurs on every read/write can add up
under high throughput with lots of small messages.
This closes #704
2015-11-22 20:52:40 +01:00
Mark Erickson
8d8d6573f7
THRIFT-3434 Dart generator produces empty name in pubspec.yaml for includes w/o namespace
...
Client: Dart
Patch: Mark Erickson <mark.erickson@workiva.com>
This closes #706
2015-11-20 21:20:37 +01:00
Jens Geyer
341390c19a
THRIFT-3388 hash doesn't work on set/list
...
Client: Python
Patch: Jens Geyer
This essentially reverts commit 790a3881b2
from THRIFT-2621
2015-11-17 22:14:40 +01:00
Nobuaki Sukegawa
bc7e480d0f
THRIFT-3350 Python JSON protocol does not encode binary as Base64
...
Client: Python
Patch: Nobuaki Sukegawa
This closes #697
2015-11-15 14:00:18 +09:00
Jens Geyer
7388037fa1
THRIFT-3416 Retire old "xxx_namespace" declarations from the IDL
...
Client: Compiler (general)
Patch: Jens Geyer
This closes #700
2015-11-14 18:57:17 +01:00
Jens Geyer
d80d0b2143
THRIFT-3417: "namespace xsd" is not really working
...
Client: XSD
Patch: Jens Geyer
Fix for error: '>>' should be '> >' within a nested template argument list
2015-11-14 15:26:09 +01:00
Jens Geyer
eeb51962fa
THRIFT-3426 Align autogen comment in XSD
...
Client: XSD
Patch: Jens Geyer
2015-11-14 14:28:10 +01:00
BCG
cc193c1bec
THRIFT-3417: "namespace xsd" is not really working
...
Client: XSD
Patch: Benjamin Gould
This closes #691
2015-11-14 14:28:09 +01:00
Jens Geyer
86284da849
THRIFT-3413 Thrift code generation bug in Go when extending service
...
Client: Go
Patch: Jens Geyer
2015-11-11 01:33:39 +01:00
Max Spencer
c04fb0069e
THRIFT-2974 fix optional writeToParcel
...
Client: Java
Patch: Max Spencer
This closes #687
2015-11-11 00:32:55 +09:00
Laurent Goujon
11c3569720
THRIFT-3199 Uses StructMetaData for exception fieldvalue
...
Client: Compiler(Java, javame, as3)
Patch: Laurent Goujon
This closes #526
2015-11-08 23:59:40 +09:00
Nobuaki Sukegawa
760511f59b
THRIFT-1857 Python 3 Support
...
Client: Python
Patch: Thomas Bartelmess, Eevee (Alex Munroe), helgridly, Christian Verkerk, Jeroen Vlek, Nobuaki Sukegawa
This closes #213 and closes #680
2015-11-06 21:24:16 +09:00
Konrad Grochowski
7f4be5f188
some 'some make style' suggestions applied to C++ files
2015-11-05 20:23:11 +01:00
Konrad Grochowski
673c94137a
THRIFT-3382 - C++: TBase class for generated structs added
...
Client: C++
Patch: Adam Beberg <beberg@sentient.ai>
TBase.h is now part of C++ Thrift library and TBase
is used as base class for all structs generated from
user defined structs (when not generating in template mode)
This closes #653
2015-11-05 20:13:05 +01:00
Andrew Bloomgarden
f0f607ffac
THRIFT-3408: correct emitted JSON types
...
This closes #679
2015-11-04 12:32:44 +01:00
Stig Bakken
d6ca81b2cc
PHP Compiler: always cast scalar types in jsonSerialize()
2015-10-29 23:01:37 +02:00
Kevin Wooten
867fafffa5
THRIFT-3401 Nested collections emit Objective-C code that cannot compile
...
Client: Cocoa
Patch: Kevin Wooten <kevin@wooten.com>
This closes #665
2015-10-29 22:51:33 +02:00
Jens Geyer
6748993dcb
THRIFT-3394 compiler generates uncompilable code
...
Client: Haskell
Patch: Tom Lippincott & Jens Geyer
Modified version of Toms patch
2015-10-27 02:23:09 +02:00
Aleksei Shevchenko
bc464c4ce8
Cocoa compiler: fixed incorrect boxing of enums inside map. #THRIFT-3395
2015-10-25 16:55:58 +02:00
Jens Geyer
40c28d3310
THRIFT-3393 Introducing i8 to provide consistent set of Thrift integers
...
Client: Compiler (general)
Patch: Jens Geyer <jensg@apache.org>
This closes #656
2015-10-20 23:17:38 +02:00
Jens Geyer
86da51d2ae
THRIFT-3339 Support for database/sql
...
Client: Go
Patch: Adam Beberg <beberg@sentient.ai>
Contributed by Sentient Technologies - http://www.sentient.ai/
This closes #623
2015-10-14 14:34:03 +02:00
Jens Geyer
673c44bc11
Fix for misc. codegen issues with THRIFT-2905
...
Client: Cocoa
Patch: Kevin Wooten <kevin@wooten.com>
This closes #652
2015-10-13 23:58:50 +02:00
Andrew Audibert
2d3eff5d38
THRIFT-2794 Suppress "unused" warnings in autogenerated Java files Client: Java
...
Client: java
This closes #649
2015-10-13 23:27:00 +02:00
Nobuaki Sukegawa
30f465db92
THRIFT-3378 c_glib service does not handle negative Thrift byte values correctly
...
This closes #644
2015-10-11 00:40:37 +02:00
Jens Geyer
56e5b9b01b
THRIFT-2905 Cocoa compiler should have option to produce "modern" Objective-C
...
Client: Cocoa (ObjectiveC & Swift)
Author: Kevin Wooten <kevin@wooten.com>
This closes #539
2015-10-09 22:01:55 +02:00
Jens Geyer
f124b55e6d
THRIFT-3372 Add dart generator to Visual Studio project
...
Client: Dart
Patch: Jens Geyer
2015-10-08 22:42:50 +02:00
Mark Erickson
932c4700c6
THRIFT-3299 Create an Apache Thrift language binding for Dart (dartlang.org).
...
Client: Dart
Patch: Mark Erickson <mark.erickson@workiva.com>
This closes #608
2015-10-03 01:43:59 +02:00
Jens Geyer
178b813acd
THRIFT-3361 Improve C# library
...
Client: C#
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>
This closes #630
2015-09-30 23:16:45 +02:00
Konrad Grochowski
ce636dd65c
THRIFT-3317: C++ - generated code will properly reference global apache namespace
...
Client: C++
Patch: Carrey Zhan
apache::xxxxx --> ::apache::xxxxx
2015-09-25 21:11:55 +02:00
Jens Geyer
0621e1fc94
THRIFT-3354 Fix word-extraction substr bug in initialism code
...
Client: Go
Author: Prashant Varanasi <prashant@uber.com>
This closes #625
2015-09-25 20:54:45 +02:00
Konrad Grochowski
c623197d37
THRIFT-3336: C++ - generated ostream operator<< will be overridable
...
Client: C++
Patch: James E. King, III <jim.king@simplivity.com>
This closes #626
Generated scructs will have virtual printTo(ostream&) method, used by
inline ostream operator<<.
2015-09-25 20:41:42 +02:00
jfarrell
a1ae93f4be
THRIFT-3290: Using from in variable names causes the generated Python code to have errors
...
Client: py
Patch: Prathik Rajendran
Adds 'from' to the reserved words list for py
This closes #579
2015-09-24 22:58:45 -04:00
Jens Geyer
804504b79a
THRIFT-3331 warning: ‘etype’ may be used uninitialized in this function
...
Client: C_glib
Patch: Simon South
2015-09-23 22:01:06 +02:00
Jens Geyer
8c7b03c2a5
THRIFT-3349 Python server does not handle processor exception
...
Client: Python
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>
This closes #621
2015-09-23 21:20:57 +02:00
Jens Geyer
293e2f450b
THRIFT-3338 Stray underscore in generated go when service name starts with "New"
...
Client: Go
Patch: Jens Geyer
2015-09-21 23:18:07 +02:00
Jens Geyer
61444d7be5
THRIFT-557 charset problem with file Autogenerated by Thrift
...
Client: Python
Patch: zhenghuabin <zhenghuabin@bytedance.com>
This closes #601
2015-09-21 22:43:28 +02:00
Jens Geyer
0f17e15255
THRIFT-3051 Go Thrift generator creates bad go code
...
Client: Go
Patch: Jake Farrell
2015-09-15 21:44:53 +02:00
Jens Geyer
5bc8b5a3a5
THRIFT-3302 Go JSON protocol should encode Thrift byte type as signed integer string
...
Client: Go
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>
This closes #591
2015-09-05 12:50:24 +02:00
jfarrell
6949b7c969
THRIFT-2981: IDL with no namespace produces unparsable PHP
...
Client: php
Patch: Randy Abernethy
The compiler is generating the namespace statement even when there isn't one, which blows up the PHP interpreter. Patch supresses service and type file output of namespace unless there actually is one.
2015-08-25 01:09:35 -04:00
jfarrell
f13e431bab
THRIFT-3305: Missing dist files for 0.9.3 release candidate
...
Client: build
Patch: jfarrell
Adds missing files to dist
2015-08-25 00:39:29 -04:00
Henrique Mendonça
738143cf36
THRIFT-3293 JavaScript: null values turn into empty structs in constructor
...
Patch: Håkon Hitland
2015-08-16 19:17:33 +10:00
Jens Geyer
4fed1af570
THRIFT-3178 glib C does not compile
...
Client: c_glib
Patch: Simon South <ssouth@simonsouth.com>
This closes #581
2015-08-08 00:24:13 +02:00
Randy Abernethy
8dbe5f60a7
THRIFT-2199:Remove dense protocol
...
Client: C++ library and compiler
Patch: Randy Abernethy
2015-08-01 22:57:02 -07:00
Jens Geyer
54f392b8fd
THRIFT-2832 c_glib: Handle string lists correctly
...
Client: c_glib
Patch: Simon South <ssouth@simonsouth.com>
The compiler now correctly generates code for string lists (i.e. variables of type list<string>) that are
- Passed as a parameter to a service method,
- Returned from a service method or
- Assigned a default value.
Added a unit test that covers containers (initially only string lists) used as parameters to and return values from
service methods, and as members with default values inside structs.
2015-08-05 21:45:10 +02:00
Simon South
b28e3ccdcb
THRIFT-3288 c_glib: Compiler: Gently refactor functions
...
This change gently refactors a handful of recently modified
functions to
- Wrap lines at 80 columns,
- Improve readability (making the layout of the compiler's source
code more closely match that of the code it's generating),
- Use more consistently the indent_up/indent_down and
scope_up/scope_down helper functions rather than embedding
formatting characters directly, and
- Improve slightly the formatting of the generated code.
2015-08-03 22:10:23 +02:00
Simon South
7bc907a959
THRIFT-3288 c_glib: Compiler: Silence unused-parameter warnings
...
This change modifies the generated class and interface initializers
so they don't generate "unused parameter" warnings when compiled.
2015-08-03 22:10:23 +02:00
Simon South
c83a2b5185
THRIFT-3288 c_glib: Compiler: Don't mix declarations and code
...
This change moves variable declarations to the top of code blocks
in the generated code, resolving a number of "ISO C90 forbids mixed
declarations and code" warnings when building the unit tests.
2015-08-03 22:10:23 +02:00
Simon South
c1febebef6
THRIFT-3284 c_glib: Compiler: Omit processing-function defs for empty services
...
This closes : #575
2015-08-02 16:19:06 +02:00
Jens Geyer
a2e0c5075d
THRIFT-3260 multiple warnings in c_glib tutorial
...
Client: c_glib
Simon South <ssouth@simonsouth.com>
This closes #573
Here are additional changes that should really and truly resolve all the warnings generated when building the c_glib tutorial:
Compiler:
- Do not output a trailing comma in exception-enum definitions.
- Move variable declarations to avoid mixing declarations and code in generated code.
- Improve the readability of affected code blocks (and rely on indent_up and indent_down for indentation).
Library
- Use only C-style comments in headers included by clients.
Tutorial
- Move THRIFT_UNUSED_VAR calls to avoid mixing declarations and code.
2015-07-31 23:23:41 +02:00
Jens Geyer
f6eebba4a0
THRIFT-3260 multiple warnings in c_glib tutorial
...
Client: c_glib
Patch: Simon South <ssouth@simonsouth.com>
This closes #572
Tutorial:
- Silence unused-function warnings
- Remove spurious ";" from GObject type macro
Compiler:
- Suppress unused-var warnings in client initializers
- Omit spurious ";" after GObject type macros
2015-07-30 21:11:23 +02:00
Jim King
f5f1b35a7d
THRIFT-3053: Added perl SSL Socket support, split SSLSocket and SSLServerSocket out from their base classes, fixed THRIFT-3191 generated perl compiler exception handling code, added perl to make cross, fixed THRIFT-3189 allowing perl to listen on a specific interface through construction arguments. Did not add support in the perl client SSLSocket to verify server certificate authenticity at this time.
2015-07-30 14:19:49 +02:00
Jens Geyer
46ab187bb5
THRIFT-3273 c_glib: Generated code tries to convert between function and void pointers
...
Client: c_glib
Patch: Simon South <ssouth@simonsouth.com>
This closes #568
2015-07-30 00:01:04 +02:00
Jens Geyer
57ac33ea1a
THRIFT-3264 Fix Erlang 16 namespaced types
...
Client: Erlang
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>
This closes #566
2015-07-28 23:12:52 +02:00
Jens Geyer
8677719180
THRIFT-2957 warning: source file %s is in a subdirectory, but option 'subdir-objects' is disabled
...
Client: Compiler General
Patch: Simon South
This closes #563
2015-07-27 23:52:13 +02:00
Jens Geyer
e33d16520a
THRIFT-3255 Thrift generator doesn't exclude 'package' keyword for thrift property names breaking java builds
...
Client: Compiler General
Patch: Jens Geyer
This closes #561
2015-07-25 15:23:45 +02:00
ben-craig
02bade1583
THRIFT-3247 Generate a C++ thread-safe client
...
Client: cpp
Patch: Ben Craig <bencraig@apache.org>
2015-07-17 08:40:48 -05:00
Frederik Gladhorn
e15ade77cb
THRIFT-3244 TypeScript: fix namespace of imported types
2015-07-16 23:52:42 +02:00
Kaspar Fenner
8b01553758
THRIFT-3248 Remove additional comma in TypeScript method signature
...
Fixes a bug which adds an additional comma in the method signature
of methods with no (zero) parameters.
Signed-off-by: Kaspar Fenner <kaspar.fenner@siemens.com>
2015-07-16 23:05:43 +02:00
ben-craig
fae08e774c
THRIFT-3246 Reduce the number of trivial warnings in Windows C++ CMake builds
...
Client: cpp
Patch: Ben Craig <bencraig@apache.org>
This closes #553
2015-07-15 11:34:47 -05:00
Felipe Barriga Richards
5af2d99c5e
THRIFT-3223 TypeScript: Added support for maps of enums.
2015-07-13 15:25:58 +02:00
Felipe Barriga Richards
20a25519c4
THRIFT-3222 TypeScript: Fix enum generation (remove quotes)
2015-07-12 21:49:45 +02:00
Jens Geyer
01a77ab01e
THRIFT-3230: transform typedef when getting type name
...
Client: Python
Patch: 软件工程师李飛 <lifei@7v1.net>
This closes #545
Python compiler generates wrong code if there is function throwing a typedef of exception with another namespace. We should use the real type name instead of the name of typedef.
2015-07-11 11:46:38 +02:00
Jens Geyer
90c60e340c
THRIFT-3239 Limit recursion depth
...
Client: Haxe
Patch: Jens Geyer
This closes #547
2015-07-11 01:19:53 +02:00
Ben Craig
8b4e155f04
Adding audit tool to the compiler's pre-fab Visual Studio project
2015-07-09 20:58:04 -05:00
Ben Craig
012dd4e3fc
Renamed, relocated, and reformated the audit tool's readme file
2015-07-09 20:55:53 -05:00
Jens Geyer
4018036980
THRIFT-3235 C#: Limit recursion depth to 64
...
Client: C#
Patch: Jens Geyer
2015-07-09 23:06:41 +02:00
Jens Geyer
d47fcdd66d
THRIFT-3234 Delphi: Limit recursion depth to 64
...
Client: Delphi
Patch: Jens Geyer
2015-07-09 22:20:12 +02:00
Ben Craig
cfaadcc4ad
THRIFT-3231 CPP: Limit recursion depth to 64
...
Client: cpp
Patch: Ben Craig <bencraig@apache.org>
2015-07-08 20:50:33 -05:00
Ben Craig
262cfb4189
THRIFT-3221 Create a tool to audit network compatibility between two
...
.thrift files
Client: Compiler (general)
Patch: Sanjay Poojary <sanjay.poojary@ni.com>, Ben Craig
<bencraig@apache.org>, and Zach Hindes <zach.hindes@ni.com>
This closes #541
2015-07-08 20:37:15 -05:00
Jens Geyer
6e40376568
THRIFT-3220 Option to suppress @Generated Annotation entirely
...
Client: Java
Patch: notona <notona@gmail.com> & Jens Geyer
This closes #540
This change contains:
- the work of notona from GitHub PR 540
- additional changes I made to align THRIFT-3220 and THRIFT-3193
2015-07-05 19:24:11 +02:00
Jens Geyer
5cf9d7744c
THRIFT-3214 Add Erlang option for using maps instead of dicts
...
Client: Erlang
Patch: Michael Oliver <mikemboliver@gmail.com>
This closes #535
2015-07-02 21:07:17 +02:00
Jens Geyer
7702536249
THRIFT-2921 Make Erlang impl ready for OTP 18 release (dict/0 and set/0 are deprecated)
...
Client: Erlang
Patch: Michael Oliver <mikemboliver@gmail.com>
This closes #533
2015-06-30 21:31:50 +02:00
Jens Geyer
24ef0d6f51
THRIFT-3193 Option to supress date value in @Generated annotation
...
Client: Java
Patch: Roshan George <roshan@arjie.com>
This closes #531
2015-06-30 21:31:48 +02:00
Jens Geyer
507075607f
THRIFT-3210 (uncompileable) code generated for server events while are events not enabled
...
Client: Delphi
Patch: Jens Geyer
2015-06-29 11:30:40 +02:00
Henrique Mendonça
15d904240e
THRIFT-3122 Javascript struct constructor should properly initialize struct and container members from plain js arguments
...
Patch: Igor Tkach
This closes #519
2015-06-25 22:31:41 +10:00
Jens Geyer
86a51e7eca
THRIFT-3170: Add a flag to allow the ignoring of common initialisms in Go
...
Client: Go
Patch: Paul Magrath <paul@paulmagrath.com>
This closes #508
2015-06-01 21:09:17 +02:00
Henrique Mendonça
c0e4a8dc07
Revert "THRIFT-3122 Javascript struct constructor should properly initialize struct and container members from plain js arguments"
...
This reverts commit 1568aef7d4
.
2015-06-01 23:23:22 +10:00
Jens Geyer
b3b7d0457a
THRIFT-3174: Modify initialism code in Go compiler to check first word
...
Client: Go
Patch: Paul Magrath <paul@paulmagrath.com>
This closes #509
2015-05-30 22:56:01 +02:00
Henrique Mendonça
1568aef7d4
THRIFT-3122 Javascript struct constructor should properly initialize struct and container members from plain js arguments
...
Client: Node and JS
Patch: Igor Tkach
This closes #476
2015-05-27 22:15:46 +10:00
Jens Geyer
549a9e1e6d
THRIFT-3160 go: make generated enum types implement TextMarshaler and TextUnmarshaler
...
Client: Go
Patch: Konstantin Shaposhnikov <k.shaposhnikov@gmail.com>
This closes #507
2015-05-21 22:20:31 +02:00
Jens Geyer
33eef3534f
THRIFT-3150: fixed help text (thanks to Konstantin who catched this)
...
Client: Go
Patch: Jens Geyer
2015-05-21 02:16:47 +02:00
Jens Geyer
9265222b3f
THRIFT-3150: fixed help text (thanks to Konstantin who catched this)
...
Client: Go
Patch: Jens Geyer
2015-05-21 02:13:18 +02:00
Jens Geyer
70219e108a
THRIFT-3150 Add an option to make Read and Write methods private
...
Client: Go
Patch: Konstantin Shaposhnikov <k.shaposhnikov@gmail.com>, slightly modified by Jens Geyer
This closes #505
2015-05-20 23:36:50 +02:00
Konrad Grochowski
1f6e380c5d
make style
applied
2015-05-18 19:47:28 +02:00
Konrad Grochowski
3b115dfa61
THRIFT-727 - C++: what() method of generated exceptions will provide more information
...
Patch: Anna Dymek <aadymek@gmail.com>
Client: C++
This closes #469
2015-05-18 19:47:23 +02:00
Roger Meier
880a2b32e5
doc: update compiler CMake build and update .gitignore
2015-05-16 22:40:17 +02:00
Roger Meier
4ead520841
THRIFT-3155 move contrib/mingw32-toolchain.cmake to build/cmake/
2015-05-16 21:09:18 +02:00
Jens Geyer
b7138acd86
THRIFT-3149 go: make generated readFieldN methods private
...
Client: Go
Patch: Konstantin Shaposhnikov <k.shaposhnikov@gmail.com>
This closes #496
2015-05-15 22:35:50 +02:00
Roger Meier
86fded21b5
THRIFT-2850 CMake: improve Windows support
...
use YY_NO_UNISTD_H and remove --wincompat
2015-05-15 15:44:22 +02:00
Jens Geyer
eab9c45bad
THRIFT-3089 Assigning default ENUM values results in non-compilable java code if java namespace is not defined
...
Client: Java
Patch: Anna Dymek <aadymek@gmail.com>
This closes #490
2015-05-12 23:02:32 +02:00
Jens Geyer
b9f6038cfb
THRIFT-3146 Graphviz generates function name collisions between services
...
Client: Graphviz
Patch: Adam Beberg
2015-05-12 22:39:31 +02:00
Jens Geyer
77a7103fe1
THRIFT-3144 make String representation of enums in generated go code less verbose
...
Client: Go
Patch: Konstantin Shaposhnikov <k.shaposhnikov@gmail.com>
This closes #489
Changed generated String/FromString methods for enums to use values from thrift definition file for string representation of an enum.
E.g.:
- before: String(TestEnum_FIRST) = "TestEnum_FIRST"
- after : String(TestEnum_FIRST) = "FIRST"
2015-05-11 22:45:55 +02:00
Konrad Grochowski
2a15b99372
THRIFT-3132: Java generator will properly format date in @Generated
...
Client: Java
Patch: Stig Bakken <stig@zedge.net>
This closes #484
2015-05-09 11:55:36 +02:00
Jens Geyer
dfc22ad205
THRIFT-3128 Go generated code produces name collisions between services
...
Client: Go
Patch: Adam Beberg
2015-05-08 21:43:50 +02:00
Jens Geyer
89cffc6f76
THRIFT-3126 PHP JSON serializer converts empty or int-indexed maps to lists
...
Client: php/test/Test/Thrift/JsonSerialize/JsonSerializeTest.php
Patch: Stig Bakken <stig@zedge.net>
This closes #479
2015-05-05 21:10:50 +02:00
Konrad Grochowski
de7cf5df92
THRIFT-3124: some signed/unsigned warnings removed from compiler
...
Client: all
Patch: Konrad Grochowski
2015-05-04 11:24:47 +02:00
Konrad Grochowski
13699f878a
THRIFT-3123: Missing include added to compiler/cpp/src/main.h
...
Patch: David Ehrmann
Client: all
This closes #477
2015-05-04 11:21:22 +02:00
Jim King
9de9b1f1be
THRIFT-2850 get windows cmake working again and building the unit tests for lib/cpp, and pass make check through cmake - also resolve some compiler warnings
2015-04-30 22:40:26 +02:00
Jens Geyer
811d279d58
THRIFT-3114 Using local temp variables to not pollute the global table
...
Client: Lua
Patch: Xin Li <lixin.lab@gmail.com>
This closes #463
2015-04-26 17:47:58 +02:00
Jens Geyer
958a7a242a
THRIFT-3115 Uncompileable code due to name collision with predefined used types
...
Client: Delphi
Patch: Jens Geyer
2015-04-26 17:47:50 +02:00
Jens Geyer
5ec2121cf2
THRIFT-233 IDL doesn't support negative hex literals
...
Client: Compiler general
Patch: mreve <aadymek@gmail.com>
This closes #461
Update hexconstant regex in thriftl.ll
As it is now, the parser doesn't allow hex constant values to be negative (it throws a 'bad syntax' error).The change updates the regex and the part that parses the hex value from the string read from the IDL file to support negative values.
Add test to ConstantsDemo.thrift
Before the change, "make install" would break with negative hex constant in ConstantsDemo.thrift. Now it compiles.
2015-04-26 17:47:43 +02:00
Roger Meier
71f2d8a714
THRIFT-3067 C++ cppcheck performance related warnings
...
Patch: Arijit Chattopadhyay <arijitnit06@gmail.com>
This closes #444
2015-04-26 17:00:04 +02:00
Jens Geyer
3b61971c8e
THRIFT-3047 Uneven calls to indent_up and indent_down in Cocoa generator
...
Client: Cocoa
Author: Mike Riley <mikeriley@yelirekim.com>
This closes #401
2015-04-16 22:11:14 +02:00
Jens Geyer
f332d16460
THRIFT-3041 Generate asynchronous clients for Cocoa
...
Client: Cocoa
Patch: Mike Riley <mikeriley@yelirekim.com>
This closes #400
2015-04-16 22:11:11 +02:00
Jens Geyer
f9c318ca9e
THRIFT-3098 Print binary typedefs the same way we do binary fields
...
Client: Java
Patch: Roshan George <roshan@arjie.com>
This closes #445
2015-04-16 21:29:20 +02:00
Roger Meier
a242c28ba1
THRIFT-227 Pretty print binary collections
...
This closes #441
commit 5da68694fec6a51e97f5a75823babb1074e32eb2
Author: Roshan George <roshan@arjie.com>
Date: 2015-04-13T03:40:26Z
2015-04-14 22:14:41 +02:00
Roger Meier
8f27189dfd
THRIFT-3090 cmake build is broken (set CMake version to 2.8.12)
2015-04-14 22:05:50 +02:00
Roger Meier
7726b03ac1
THRIFT-1857 Python 3.X Support - Replace deprecated "," with "as" in python exception generation code.
...
Patch: George Leslie-Waksman
This closes #440
2015-04-14 21:47:58 +02:00
Roger Meier
b1783a5722
THRIFT-3092 Generated Haskell types should derive Generic
...
This closes #437
commit bc922190b70e1264f356ab463dda18babf7910e3
Author: Abhinav Gupta <mail@abhinavg.net>
Date: 2015-03-11T07:26:58Z
[haskell] Derive Generic in generated types
2015-04-12 22:08:20 +02:00
Roger Meier
5af78c8776
Revert "THRIFT-3014 AppVeyor support - fix format"
...
This reverts commit 81b3c440c6
.
commit included modified CMakeLists.txt files, as part from local test
2015-04-12 21:43:12 +02:00
Roger Meier
81b3c440c6
THRIFT-3014 AppVeyor support - fix format
2015-04-12 21:06:11 +02:00
Nobuaki Sukegawa
6d71dc8688
THRIFT-3091 c_glib service method should return result from handler method
2015-04-12 09:58:22 +02:00
Jens Geyer
86f7350f90
THRIFT-3076 Compatibility with Haxe 3.2.0
...
Client: Haxe
Patch: Jens Geyer
This closes #435
2015-04-11 02:04:09 +02:00
Nobuaki Sukegawa
58ed1cdf3c
THRIFT-3057 Java compiler build is broken
2015-03-29 14:39:32 +02:00
Roger Meier
e6789480d2
THRIFT-1909 Java: Add compiler flag to use the "option pattern" for optional fields
...
Patch: Eirik Sletteberg & rebase by Wouter Lammers
2015-03-23 20:41:15 +01:00
Jens Geyer
43ceaf7cf5
THRIFT-3043 go compiler generator uses non C++98 code
...
Client: Go
Patch: Jens Geyer
2015-03-17 00:39:36 +02:00
Jens Geyer
1d1bca2738
THRIFT-3027 Go compiler does not ensure common initialisms have consistent case
...
Client: Go
Patch: Magrath <paul@paulmagrath.com>
This closes #394
2015-03-14 16:38:43 +02:00
Jens Geyer
28c1c19f91
THRIFT-3023 Go compiler is a little overly conservative with names of attributes
...
Client: Go
Patch: Paul Magrath <paul@swiftkey.com>
This closes #389
2015-03-07 14:25:00 +01:00
Jens Geyer
eda0f844ee
THRIFT-3021 Service remote tool does not import stub package with package prefix
...
Client: Go
Patch: Yinyin L <yinyinl@gmail.com>
This closes #385
2015-03-03 21:35:44 +01:00
Jens Geyer
3811e59c15
THRIFT-3019 Golang generator missing docstring for structs
...
Client: Go
Patch: Abdel Said
2015-03-03 21:35:36 +01:00
Jens Geyer
962e41078b
THRIFT-3006 Attach 'omitempty' json tag for optional fields in Go
...
Client: Go
Patch: Peter Woodman <peter@vineapp.com>
This closes #380
2015-02-27 22:53:00 +01:00
Randy Abernethy
bd60b92c6f
THRIFT-3008: Node.js server does not fully support exceptions
...
Client: Node.js
Patch: Nobuaki Sukegawa
Github Pull Request:
This closes #382
commit 0c0d51ca1dafa5f8e0004563df780a92580590f3
Author: Nobuaki Sukegawa <nsukeg@gmail.com>
Date: 2015-02-22T16:49:22Z
THRIFT-3008 - Node.js server does not fully support exception
2015-02-26 16:59:14 -08:00
Jens Geyer
80aa53e6bc
THRIFT-3001 C# Equals fails for binary fields (byte[])
...
Client: C#
Patch: Benjamin Schulz, Testcase added by Jens Geyer
2015-02-18 23:25:13 +01:00
Konrad Grochowski
3bc6424c76
THRIFT-2724 - Coding standards template added all over project
...
Client: All
Patch: Konrad Grochowski
This closes #371
2015-02-05 12:15:19 +01:00
Jens Geyer
b3654df14c
THRIFT-2189 add union support for go generator
...
Client: Go
Patch: Anton Lindström <lindztr@gmail.com> and Jens Geyer
This closes #369
This makes it possible to check if a field is set and skips adding new ones.
Fields in unions are pointers by setting them as `t_field::T_OPTIONAL`.
To be sure that exactly one and only one field is set in a union, we count the
number of fields set and return an error if not exactly one field is set.
This is a breaking change and will require fields in unions to be passed in as
pointers.
2015-02-03 23:40:02 +01:00
Jens Geyer
2663ec43ab
THRIFT-2955 Using list of typedefs does not compile on Go
...
Client: Go
Patch: Johannes Martinsson <johannes@saltside.se>
Be explicit about when to use true type.
2015-02-03 22:45:18 +01:00
Jens Geyer
12d430e723
THRIFT-2955 Using list of typedefs does not compile on Go
...
Client: Go
Patch: Johannes Martinsson <johannes@saltside.se>
Be explicit about when to use true type.
2015-02-03 22:34:41 +01:00
henrique
2f2d6ac7ea
THRIFT-2368 New option: reuse-objects for Java generator
...
Client: Java
Patch: adam.p.hajduk
amendments to original patch
2015-02-03 12:47:31 +11:00
jfarrell
8f2596ad54
THRIFT-2961: Service inheritance does not work with namespaced Ruby code
...
Client: rb
Patch: Jan Brauer
This closes #364
commit 111c4e77a78c1a82f526923f13534bb0027ef33f
Author: Jan Brauer <jan@jimdo.com>
Date: 2015-01-29T22:01:26Z
Make 'extends' work with 'rb:namespaced'.
commit 34cab3d7c77bd5e8325ac4f30f1091429c35905e
Author: Jan Brauer <jan@jimdo.com>
Date: 2015-01-29T22:25:03Z
Add test for namespaced service extension
2015-01-29 23:42:05 -05:00
jfarrell
4e16718e99
Thrift-2960: Fix namespace regression for Ruby
...
Client: rb
Patch: Jan Brauer
Add test that exposes the broken namespacing.
Fixes a bug introduced by #140 .
This closes #363
2015-01-29 23:03:34 -05:00
Jens Geyer
176c9261ed
THRIFT-2949 typo in compiler/cpp/README.md
...
Client: C++
Patch: Seokju Yun <noricube@gmail.com>
This closes #359
2015-01-29 00:30:08 +01:00
Jens Geyer
ce36aac591
THRIFT-2942 CSharp generate invalid code for property named read or write
...
Client: C#
Patch: Jens Geyer
2015-01-20 23:31:19 +01:00
Jens Geyer
307144a5b5
THRIFT-2878 Go validation support of required fields
...
Client: Go
Patch: Chi Vinh Le <cvl@chinet.info>
This closes #304
2015-01-20 22:40:38 +01:00
Jens Geyer
89dc20f4e0
THRIFT-2915 Lua generator missing from Visual Studio build project
...
Client: Compiler (general)
Patch: Jens Geyer
2014-12-24 02:39:53 +01:00