You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jk...@apache.org on 2018/10/04 19:44:07 UTC
[thrift] branch master updated: THRIFT-4646: change dart generation
of exception to exception Generator: Dart
This is an automated email from the ASF dual-hosted git repository.
jking pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push:
new 031f571 THRIFT-4646: change dart generation of exception to exception Generator: Dart
031f571 is described below
commit 031f57122f26656ce79c8d5dfe0a0822938afdb5
Author: David Walker <da...@mudsite.com>
AuthorDate: Wed Oct 3 15:52:19 2018 -0600
THRIFT-4646: change dart generation of exception to exception
Generator: Dart
---
compiler/cpp/src/thrift/generate/t_dart_generator.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/compiler/cpp/src/thrift/generate/t_dart_generator.cc b/compiler/cpp/src/thrift/generate/t_dart_generator.cc
index d190e16..414c333 100644
--- a/compiler/cpp/src/thrift/generate/t_dart_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_dart_generator.cc
@@ -777,10 +777,10 @@ void t_dart_generator::generate_dart_struct_definition(ostream& out,
}
indent(out) << "class " << class_name << " ";
+ out << "implements TBase";
if (is_exception) {
- out << "extends Error ";
+ out << ", Exception ";
}
- out << "implements TBase";
scope_up(out);
indent(out) << "static final TStruct _STRUCT_DESC = new TStruct(\"" << class_name